Skip to content

Commit

Permalink
minor modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
hneemann committed Dec 1, 2020
1 parent e323d49 commit b96965a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ private void createArithmeticTest(Test test, String command, int a, int b, boole
.setCarry(carryIn)
.setRegister("R1", a)
.setRegister("R2", b)
.run(command + " r1,r2")
.run(command + " r1,r2", 1)
.checkCarry(carryOut)
.checkRegister("R1", result)
.checkRegister("R2", b));

test.add(new ProcessorTest(command.toUpperCase() + "I" + (carryIn ? " C_in" : "") + (carryOut ? " C_out" : "") + " S")
.setCarry(carryIn)
.setRegister("R1", a)
.run(command + "i r1," + b)
.run(command + "i r1," + b, 1)
.checkCarry(carryOut)
.checkRegister("R1", result));

Expand All @@ -73,7 +73,7 @@ private void createArithmeticTest(Test test, String command, int a, int b, boole
test.add(new ProcessorTest(command.toUpperCase() + "I" + (carryIn ? " C_in" : "") + (carryOut ? " C_out" : "") + " L")
.setCarry(carryIn)
.setRegister("R1", a)
.run(command + "i r1," + b)
.run(command + "i r1," + b, 2)
.checkCarry(carryOut)
.checkRegister("R1", result));
}
Expand Down

0 comments on commit b96965a

Please sign in to comment.