Skip to content

Latest commit

 

History

History
89 lines (74 loc) · 1.62 KB

File metadata and controls

89 lines (74 loc) · 1.62 KB

Opcodes

This document lists out all the assembly language operations with arguments and examples.

halt (HLT)

Halts the program.

Arguments

None

Example

halt

load (LOAD)

Loads a constant value into a register.

Arguments

  • register (any type)
  • constant (any type)

Example

load $i29 #42

Note

No type coercion is done and it's an error to try to load the wrong type of constant into the wrong register type.

This may change in later versions.

copy (COPY)

Copies the contents of one register to another.

Arguments

  • a destination register (any type)
  • a source register (any type)

Example

copy $r29 $i30

Note

Type coercion is performed where possible, including loss of precision copying from real to integer.