Skip to content

Commit

Permalink
Fix nocash Char Out debug register (melonDS-emu#1500)
Browse files Browse the repository at this point in the history
To match no$gba, this register should output any ASCII character written to it, not print the number as it currently does.
  • Loading branch information
QuinnPainter authored Nov 11, 2022
1 parent b069a2a commit 2256b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NDS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3751,7 +3751,7 @@ void ARM9IOWrite32(u32 addr, u32 val)
}

// NO$GBA debug register "Char Out"
case 0x04FFFA1C: printf("%" PRIu32, val); return;
case 0x04FFFA1C: printf("%c", val & 0xFF); return;
}

if (addr >= 0x04000000 && addr < 0x04000060)
Expand Down

0 comments on commit 2256b64

Please sign in to comment.