mirror of
https://github.com/specht/champ.git
synced 2024-11-22 20:31:46 +00:00
fixed a nasty bug (THE BUG)
This commit is contained in:
parent
95cf3207d4
commit
e2d99bcca0
4
p65c02.c
4
p65c02.c
@ -604,10 +604,10 @@ void handle_next_opcode()
|
||||
target_address = read16(rpc8());
|
||||
break;
|
||||
case zero_page_x:
|
||||
target_address = (rpc8() + cpu.x) % 0xff;
|
||||
target_address = (rpc8() + cpu.x) & 0xff;
|
||||
break;
|
||||
case zero_page_y:
|
||||
target_address = (rpc8() + cpu.y) % 0xff;
|
||||
target_address = (rpc8() + cpu.y) & 0xff;
|
||||
break;
|
||||
case absolute_x:
|
||||
target_address = rpc16();
|
||||
|
Loading…
Reference in New Issue
Block a user