@Test
void testJumpRegister() {
MonTanaMiniComputer computer = new MonTanaMiniComputer();
computer.setRegisterValue(T0, 50);
short jumpIfZeroInst = (short) 0b1001_0000_0000_0000; // jr t0
computer.execInstruction(jumpIfZeroInst);
assertEquals(50, computer.getRegisterValue(PC));
}
The current spec has the
jr's top nibble like so:1000 0000 0000 rrrrFound a test that has a different top nibble:
1001.Jump Register spec
The test in question