Skip to content

4. Math

Program edited this page Feb 4, 2024 · 3 revisions

ADD Instruction

ADD do an addition on two registers to save it on another (the first register you give in the format is the register that will contain the operation).

Format

ADD Re, Ra, Rb

Example

ADD R3, R1, R2

SUB Instruction

SUB subtract two registers to save it on another (the first register you give in the format is the register that will contain the operation).

Format

SUB Re, Ra, Rb

Example

SUB R3, R1, R2

Clone this wiki locally