- ERRNUM res = ESUCCESS;
-
- if (z80_bus_state() & ZST_RUNNING) {
- res = ERUNNING;
- } else if (!(z80_bus_cmd(Request) & ZST_ACQUIRED)) {
- res = EBUSTO;
- }
- if (res != ESUCCESS)
- cmd_error(CMD_RET_FAILURE, res, NULL);
-
+ if (z80_bus_state() & ZST_RUNNING)
+ cmd_error(CMD_RET_FAILURE, ERUNNING, NULL);
+ z80_bus_request_or_exit();