diff options
author | Leo C | 2018-09-08 20:37:23 +0200 |
---|---|---|
committer | Leo C | 2018-09-08 20:37:23 +0200 |
commit | 51dd0948df5ed53b11cab4e909e19ee7cee363c5 (patch) | |
tree | e1589e9aa34d42e998978d8aeb939cdbc1222185 /avr/z80-if.c | |
parent | 7dda03f3ce376f35d080325551ccdca6c7414061 (diff) | |
download | z180-stamp-51dd0948df5ed53b11cab4e909e19ee7cee363c5.zip |
new debug command: xx test. get freq command from single step branch.
Diffstat (limited to 'avr/z80-if.c')
-rw-r--r-- | avr/z80-if.c | 11 |
1 files changed, 11 insertions, 0 deletions
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) |