From 25f70554f58333426ee199d6b13b8d2186baf0c4 Mon Sep 17 00:00:00 2001 From: Keith Bourdon <33245078+celerizer@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:03:08 -0500 Subject: [PATCH] cleanup warnings --- emu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/emu.c b/emu.c index a50c177..21bf7a7 100644 --- a/emu.c +++ b/emu.c @@ -2646,6 +2646,8 @@ void h8_init(h8_system_t *system) system->vmem.parts.io2.wdt.tcsrwd1.flags.b6wi = 1; system->vmem.parts.io2.adc.adsr.flags.reserved = B00111111; + /** @todo ; eeprom dump of 8 conversions, div by 8 */ + system->vmem.parts.io2.adc.adrr.flags.data = 82; /* Jump to program entrypoint */ system->cpu.pc = h8_read_w(system, 0).u; @@ -2817,7 +2819,7 @@ void h8_test_division(void) l.u = 999; w.u = 0; - l = divxu_w(&system, l, w); + divxu_w(&system, l, w); if (system.cpu.ccr.flags.z != 1) H8_TEST_FAIL(3) @@ -2960,7 +2962,7 @@ void h8_test_shift(void) void h8_test_size(void) { - h8_system_t system = {0}; + h8_system_t system; if (sizeof(system.vmem.parts.io1) != 0xE0) H8_TEST_FAIL(1)