Yet Another Virtual Machine - Comparison Instructions

Back to index

CMP8, CMP16, CMP32, CMP64

OPCODE: 11101

InstructionValue for X
CMP81
CMP162
CMP324
CMP648
CMP8 4 5
CMP8 5 4
CMP8 5 5

CMP8 (1 11101 00)45
CMP8 (1 11101 00)54
CMP8 (1 11101 00)55

STACK HEAD (SP = 3)
0
1
-1
STACK BASE

Source code

Back to index