File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -313,17 +313,17 @@ INLINE u16 M6502::ZeroPageIndirectAddressing()
313313
314314INLINE u16 M6502::ZeroPageIndexedIndirectAddressing ()
315315{
316- u16 address = (ZeroPageAddressing () + m_s.X .GetValue ()) & 0x20FF ;
316+ u16 address = (ZeroPageAddressing () + m_s.X .GetValue ()) & 0x00FF ;
317317 u8 l = MemRead8 (address);
318- u8 h = MemRead8 ((address + 1 ) & 0x20FF );
318+ u8 h = MemRead8 ((address + 1 ) & 0x00FF );
319319 return Address16 (h, l);
320320}
321321
322322INLINE u16 M6502::ZeroPageIndirectIndexedAddressing ()
323323{
324324 u16 address = ZeroPageAddressing ();
325325 u8 l = MemRead8 (address);
326- u8 h = MemRead8 ((address + 1 ) & 0x20FF );
326+ u8 h = MemRead8 ((address + 1 ) & 0x00FF );
327327 return Address16 (h, l) + m_s.Y .GetValue ();
328328}
329329
You can’t perform that action at this time.
0 commit comments