Skip to content

Writing in my assembly.

Tim Break edited this page May 25, 2026 · 2 revisions

Writing assembly scripts

Commands

Name Syntax Operand 1 Operand 2 Description Usage example
mov_r_r mov rX, rY register register After execution, the value of the first register(rX) will be equal to the value of the second register(rY). mov r0, r1
mov_r_imm mov rX, Y register number After execution, the value of the first register(rX) will be equal to the provided number(Y). mov r0, 10
load load rX, rY register register Loads a numeric value of a 32-bit word into the first register(rX), with the first byte located in memory(ram) at the address stored in the second register(rY). load r0, r1
store store rX, rY register register Stores the value from the second register(rY) in memory(ram) at the address stored in the first register(rX). store r0, r1
add_r\sub_r\mul_r\div_r\and_r\or_r\xor_r COMMAND rX, rY register register Performs an arithmetic operation on the values in the provided registers(rX [operation] rY) and stores the result in the first register(rX). Updates the flags. COMMAND means the name of the selected command (from the "Name" column, but without the "_r" postfix). add r0, r1 for command add
mul r0, r1 for command mul
add_i\sub_i\mul_i\div_i\and_i\or_i\xor_i COMMAND rX, Y register number Performs an arithmetic operation on the value in the register and the provided number(rX [operation] Y) and stores the result in the register(rX). Updates the flags. COMMAND means the name of the selected command (from the "Name" column, but without the "_i" postfix). add r0, 10 for command add
mul r0, 10 for command mul

Clone this wiki locally