Skip to content

Commit

Permalink
Prevent default break_io being hit
Browse files Browse the repository at this point in the history
The default break_io value of -1 is being hit when simulated memory at 0xffff is written to.
  • Loading branch information
dlkeng authored Oct 20, 2024
1 parent fa9d4bc commit cd462fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simulate/z80.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
memory->read8((a + 1) & 0xffff)

#define WRITE_RAM(a, b) \
if ((a) == (uint32_t)break_io) \
if ((uint16_t)(a) == (uint32_t)break_io) \
{ \
exit(b); \
} \
Expand Down

0 comments on commit cd462fe

Please sign in to comment.