#
cmp
Compares two values and sets the CMP register.
- CMP = 1 if
x
greater thany
- CMP = 0 if
x
equalsy
- CMP = -1 if
x
less thany
#
Syntax
cmp <x> <y>
#
Parameters
#
Example
cmp r0, r1
cmp r2, 8
cmp 12, 55
#
History
- 0.1 added