MMIX LOGO

MMIX Instruction Set

Table of Content

Content

Compare instructions

Name:
CMP $X,$Y,$Z CMP $X,$Y,Z
CMPU $X,$Y,$ZCMPU $X,$Y,Z

Specification:

CMP:
s($X) ← { - 1 if s($Y) < s($Z)
0 if s($Y) = s($Z)
+ 1 if s($Y) > s($Z)
CMPU:
s($X) ← { - 1 if u($Y) < u($Z)
0 if u($Y) = u($Z)
+ 1 if u($Y) > u($Z)

Timing:

Description:

Compares two integer numbers. The result can be used to control Branches or Conditional Set instructions.

Please help to keep this site up to date! If you want to point out important material or projects that are not listed here, if you find errors or want to suggest improvements, please send email to email