Check the source code for example assembly code

Operation Operation Name Documentation Usage Example
ldr Load Register Loads the value of the RAM address specified in SCR_REG into REG ldr REG SRC_REG ldr R0 R1
str Store Register Stores the value of REG into the RAM address specified in SRC_REG str REG SRC_REG str R0 R1
db Define Byte Store the value specified after the @ into REG db REG @value db R0 @10
sb Store Byte Stores the value specifed after the @ into the RAM address specified in SRC_REG sb SRC_REG @value sb R0 @10
arithmetic Arithmetic Operation Performs an arithmetic operation arithmetic OP FLAGS arithmetic inc R0
jmp Jump Jumps to the label name specified after the $ jmp LABEL jmp $label1
jz Jump if Zero Jumps to the label name specified after the $ if the output of the previous operation was 0 jz LABEL jz $label1
clear Clear Register Clears the value of REG clear REG clear R0
end End Stops the clock and ends the program end end
label Define Label Defines a label with the name specified after the $. Always start your program with label $start label NAME label $label1
; Comment The following code on the same line is not run (this should not be on the same line as runnable code) ; COMMENT ; This is a comment
Arithmetic Operation Operation Name Flags
and Bitwise AND DST SRC
or Bitwise OR DST SRC
xor Bitwise XOR DST SRC
not Not DST
neg Negate DST
add Add DST SRC
sub Subtract DST SRC
mul Multiply DST SRC
div Divide DST SRC
inc Increment DST
dec Decrement DST
shl Shift Left DST DIST
shr Shift Right DST DIST
cmp Compare DST SRC
sar Shift Right Arithmetic DST DIST
ror Rotate Right DST DIST