# cmp

Compares two values and sets the CMP register.

  • CMP = 1 if x greater than y
  • CMP = 0 if x equals y
  • CMP = -1 if x less than y

# Syntax

cmp <x> <y>
# Parameters

# Example

cmp r0, r1
cmp r2, 8
cmp 12, 55

# History

  • 0.1 added