From 75a58247c00e840f073aaa46504379d7d55eb9b6 Mon Sep 17 00:00:00 2001 From: Sergio Martin Date: Sat, 13 Jan 2024 20:27:52 +0100 Subject: [PATCH] More work on the CPU --- source/core/Nes_Cpu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/Nes_Cpu.cpp b/source/core/Nes_Cpu.cpp index eff8ba0..4814fe7 100644 --- a/source/core/Nes_Cpu.cpp +++ b/source/core/Nes_Cpu.cpp @@ -65,7 +65,7 @@ case op + 0x18: /* abs,X */ \ data += x; \ ind##op: { \ HANDLE_PAGE_CROSSING( data ); \ - int temp = data; \ + uint32_t temp = data; \ ADD_PAGE \ if ( temp & 0x100 ) \ READ( data - 0x100 ); \ @@ -94,7 +94,7 @@ case op + 0x14: /* abs,Y */ \ case op + 0x18: /* abs,X */ \ data += x; \ ind##op: { \ - int temp = data; \ + uint32_t temp = data; \ ADD_PAGE \ READ( data - ( temp & 0x100 ) ); \ goto imm##op; \