J/cc (Jump if condition true)

December 30, 2020 ยท View on GitHub

Opcode

76543210Notes
1001CCCC < 10

Operation

PC <- PC + 1
if (F flags satisfy CC) then
    PC <- PC + SignExtend(Code[PC])
else
    PC <- PC + 1

Condition codes

CCCodeMeaning
0LELess or equal signed
1GTGreater than signed
2LTLess than signed
3GEGreater or equal signed
4LEULess or equal unsigned
5GTUGreater than unsigned
6LTULess than unsigned
7GEUGreater or equal unsigned
8EQ (or Z)Equal (or zero)
9NE (or NZ)Not equal (or not zero)

Assembler syntax examples

J/NZ @+67
J/GE Label