Instructions

How to read Instructions

Operation

  • MSB: Most Significant Bit
  • LSB: Least Significant Bit

The Syntax for the Operations closely follows the Rust syntax. Thus, Operators like ^ for Bitwise XOR, & for Bitwise AND and | for Bitwise OR are used.

Instruction Set Summary

Data Transfer Instructions

MnemonicSummary
MOVMove
XCHGExchange
PUSHPush Onto Stack
POPPop Off of Stack

Binary Arithmetic Instructions

MnemonicSummary
ADDInteger Add
SUBSubtract
IMULSigned Multiply
MULUnsigned Multiply
IDIVSigned Divide
DIVUnsigned Divide
INCIncrement
DECDecrement
NEGNegate
CMPCompare

Logical Instructions

MnemonicSummary
ANDPerform Bitwise Logical AND
ORPerform Bitwise Logical OR
XORPerform Bitwise Logical Exclusive OR
NOTPerform Bitwise Logical NOT

Shift and Rotate Instructions

MnemonicSummary
SARShift Arithmetic Right
SHRShift Logical Right
SAL|SHLShift Arithmetic Left/Shift Logical Left

Bit and Byte Instructions

MnemonicSummary
TESTLogical Compare

Control Transfer Instructions

MnemonicSummary
JMPJump
JccJump if cc
CALLCall Procedure
RETReturn

Miscellaneous Instructions

MnemonicSummary
LEALoad Effective Address
NOPNo Operation