Fix "OVERFLOW" byte not being shown at address $FFFF.

This commit is contained in:
Jay Oster 2024-09-13 00:59:01 -07:00
parent f980ec2bc7
commit 5886b9e157
1 changed files with 2 additions and 2 deletions

View File

@ -687,7 +687,7 @@ void Disassemble(HWND hWnd, int id, int scrollid, unsigned int addr)
{
if ((addr + size) > 0xFFFF)
{
while (addr < 0xFFFF)
while (addr <= 0xFFFF)
{
swprintf(chr, L"%02X OVERFLOW\n", GetMem(addr++));
wcscat(debug_wstr, chr);
@ -1901,7 +1901,7 @@ BOOL CALLBACK IDC_DEBUGGER_DISASSEMBLY_WndProc(HWND hwndDlg, UINT uMsg, WPARAM w
if (GetNesFileAddress(i) == -1)
sprintf(str,"CPU Address $%04X, Error retreiving ROM File Address!",i);
else
sprintf(str,"CPU Address %02X:%04X, Offset 0x%06X in file \"%.40s%s\" (NL file: %X)",getBank(i),i,GetNesFileAddress(i),ptr,dotdot,getBank(i));
sprintf(str,"CPU Address %02X:%04X, Offset 0x%06X in file \"%.40s%s\"",getBank(i),i,GetNesFileAddress(i),ptr,dotdot);
SetDlgItemText(hDebug, IDC_DEBUGGER_ADDR_LINE,str);
} else
{