Skip to content

Typo in MTMC spec #18

@KyleDickersonComposer

Description

@KyleDickersonComposer

The current spec has the jr's top nibble like so: 1000 0000 0000 rrrr

Found a test that has a different top nibble: 1001.

Jump Register spec

@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 test in question

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions