diff options
Diffstat (limited to 'avr/z80-if.c')
-rw-r--r-- | avr/z80-if.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/avr/z80-if.c b/avr/z80-if.c index e36b369..6183849 100644 --- a/avr/z80-if.c +++ b/avr/z80-if.c @@ -136,6 +136,11 @@ #define MASK(n) ((1<<(n))-1) #define SMASK(w,s) (MASK(w) << (s)) +void z80_bus_request_or_exit(void) +{ + if (!(z80_bus_cmd(Request) & ZST_ACQUIRED)) + cmd_error(CMD_RET_FAILURE, EBUSTO, NULL); +} static zstate_t zstate; static volatile uint8_t timer; /* used for bus timeout */ |