diff options
author | vin <git@vineetk.net> | 2024-06-30 08:58:06 -0400 |
---|---|---|
committer | vin <git@vineetk.net> | 2024-06-30 08:58:20 -0400 |
commit | 45c231297657ad4a89e24bf0ee95478dd6fc78df (patch) | |
tree | cddd0691ed1add1ef037ac0a0cd04285519fe9cb | |
parent | 99082b55287ecd0378935d31a289c05e1110c7b8 (diff) |
fix incorrect argument for ASL and LSR
-rw-r--r-- | cpu.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -904,28 +904,28 @@ interpret(void) break; case 0x06: mode = AM_ZP; - arg = opcode_arg(mode); + arg = opcode_mem(mode); asl(arg); cycles += 5; printf("ASL"); break; case 0x16: mode = AM_ZP_X; - arg = opcode_arg(mode); + arg = opcode_mem(mode); asl(arg); cycles += 6; printf("ASL"); break; case 0x0e: mode = AM_ABS; - arg = opcode_arg(mode); + arg = opcode_mem(mode); asl(arg); cycles += 6; printf("ASL"); break; case 0x1e: mode = AM_ABS_X; - arg = opcode_arg(mode); + arg = opcode_mem(mode); asl(arg); cycles += 6; printf("ASL"); @@ -1477,14 +1477,14 @@ interpret(void) break; case 0x4e: mode = AM_ABS; - arg = opcode_arg(mode); + arg = opcode_mem(mode); lsr(arg); cycles += 6; printf("LSR"); break; case 0x5e: mode = AM_ABS_X; - arg = opcode_arg(mode); + arg = opcode_mem(mode); lsr(arg); cycles += 6; printf("LSR"); |