Skip to content

Commit

Permalink
always fflush() debug register output (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
mooinglemur authored Oct 12, 2023
1 parent e35ecab commit 2f959f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ emu_write(uint8_t reg, uint8_t value)
case 6: wav_recorder_set((wav_recorder_command_t) value); break;
case 7: disable_emu_cmd_keys = v; break;
case 8: clock_base = clockticks6502; break;
case 9: printf("User debug 1: $%02x\n", value); break;
case 10: printf("User debug 2: $%02x\n", value); break;
case 9: printf("User debug 1: $%02x\n", value); fflush(stdout); break;
case 10: printf("User debug 2: $%02x\n", value); fflush(stdout); break;
case 11: {
if (value == 0x09 || value == 0x0a || value == 0x0d || (value >= 0x20 && value < 0x7f)) {
printf("%c", value);
Expand Down

0 comments on commit 2f959f5

Please sign in to comment.