From 51dd0948df5ed53b11cab4e909e19ee7cee363c5 Mon Sep 17 00:00:00 2001 From: Leo C Date: Sat, 8 Sep 2018 20:37:23 +0200 Subject: new debug command: xx test. get freq command from single step branch. --- avr/z80-if.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'avr/z80-if.c') diff --git a/avr/z80-if.c b/avr/z80-if.c index 9452ad1..5d88842 100644 --- a/avr/z80-if.c +++ b/avr/z80-if.c @@ -145,6 +145,15 @@ void z80_bus_request_or_exit(void) static zstate_t zstate; static volatile uint8_t timer; /* used for bus timeout */ +#if 0 +static volatile uint16_t req_cycles_ovl; + +ISR(TIMER4_COMPB_vect) +{ + req_cycles_ovl++; +} +#endif + /*---------------------------------------------------------*/ /* 10Hz timer interrupt generated by OC5A */ /*---------------------------------------------------------*/ @@ -352,6 +361,7 @@ zstate_t z80_bus_cmd(bus_cmd_t cmd) z80_dbus_set_in(); z80_addrbus_set_in(); z80_reset_active(); + _delay_us(10); Z80_O_BUSREQ = 1; timer = BUS_TO; while (Z80_I_BUSACK == 0 && timer) @@ -400,6 +410,7 @@ zstate_t z80_bus_cmd(bus_cmd_t cmd) z80_dbus_set_in(); z80_addrbus_set_in(); z80_reset_active(); + _delay_us(10); Z80_O_BUSREQ = 1; timer = BUS_TO; while (Z80_I_BUSACK == 0 && timer) -- cgit v1.2.3