Skip to content

Commit

Permalink
Merge pull request #15 from tonyheadford/subxl_flags
Browse files Browse the repository at this point in the history
SUBX.L should calc flags using Long value
  • Loading branch information
tonyheadford authored Aug 31, 2020
2 parents 7b863af + 065a1d7 commit d2f020c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/m68k/cpu/instructions/SUBX.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ protected int subx_long_mem(int opcode)
int d = cpu.readMemoryLong(cpu.getAddrRegisterLong(rx));
int r = d - s - (cpu.isFlagSet(Cpu.X_FLAG) ? 1 : 0);
cpu.writeMemoryLong(cpu.getAddrRegisterLong(rx), r);
cpu.calcFlags(InstructionType.SUBX, s, d, r, Size.Byte);
cpu.calcFlags(InstructionType.SUBX, s, d, r, Size.Long);
return 30;
}

Expand Down

0 comments on commit d2f020c

Please sign in to comment.