mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-18 18:26:42 +00:00
Fixes #97
This commit is contained in:
parent
2a8658c598
commit
e2763faeee
@ -166,8 +166,6 @@ public class CPU implements JSONSerialisable {
|
||||
memory.set(EXECUTED_INS_ADDR, Util.getHigherWord(counter));
|
||||
memory.set(EXECUTED_INS_ADDR + 1, Util.getLowerWord(counter));
|
||||
|
||||
System.out.println(this);//todo remove
|
||||
|
||||
return elapsed;
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@ public class CmpInstruction extends Instruction {
|
||||
|
||||
status.setSignFlag(Util.checkSign16(result));
|
||||
status.setZeroFlag((char) result == 0);
|
||||
status.setOverflowFlag(Util.checkOverFlowAdd16(a, b));
|
||||
status.setOverflowFlag(Util.checkOverFlowSub16(a, b));
|
||||
status.setCarryFlag(Util.checkCarry16(result));
|
||||
|
||||
return status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user