Skip to content

Commit 0d7400a

Browse files
committed
Notify 4 wait T-states when invoking Z80::ret{i|n} during the maskable interrupt response in mode 0.
1 parent 67cb365 commit 0d7400a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/Z80.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,13 @@ static Z_ALWAYS_INLINE void write_16b(Z80 *self, zuint16 address, zuint16 value)
375375

376376

377377
# ifdef Z80_WITH_IM0_RETX_NOTIFICATIONS
378-
#define IM0_NOTIFY_RETX(callback) \
378+
# define IM0_NOTIFY_RETX(callback) \
379379
if ( self->callback != Z_NULL && \
380380
(self->z80->options & \
381381
Z80_OPTION_IM0_RETX_NOTIFICATIONS) \
382382
) \
383383
{ \
384-
self->z80->data.uint8_array[2] |= 2; \
384+
self->z80->data.uint8_array[2] |= 4; \
385385
self->callback(CONTEXT); \
386386
}
387387

0 commit comments

Comments
 (0)