top decor
Basics Formats of instructions


Every computer insrtuction (command) tells processor what to do with information, where to take it and where to put the result. So every instruction can be naturally divided into two parts: code of operation, which shows what to do and address part, that assign operands of the instruction.

Operation code is mandatory part - every instruction must contain it. Address part also usually exists, although some system processor's commands need not operands (halt instruction for example).

MMIX has several formats of instructions, presented below (for future reference we shall enumerate them). All instruction have 4-byte length.

Format for system instructions:

  • format 0: only operation code essential
    OPXYZ
    OP - operation code; X, Y, Z arbitrary

The most frequently used formats:

Branch formats:


Related topics:

"MMIX basics" page
 

  (C) 2001, Evgeny Eremin. rEd-MMI project documentation