Difference between revisions of "Assembly Language"
Jamietalbot (talk | contribs) (→STR - Store) |
Jamietalbot (talk | contribs) (→MOV - Move) |
||
Line 13: | Line 13: | ||
==SUB - Subtract== | ==SUB - Subtract== | ||
==MOV - Move== | ==MOV - Move== | ||
+ | This instruction is to copy a value into a register. | ||
+ | |||
==CMP - Compare== | ==CMP - Compare== | ||
==B - Branch== | ==B - Branch== |
Revision as of 11:19, 6 March 2017
Contents
- 1 Operands
- 2 LDR - Load
- 3 STR - Store
- 4 ADD - Add
- 5 SUB - Subtract
- 6 MOV - Move
- 7 CMP - Compare
- 8 B - Branch
- 9 BEQ - Branch If Equal
- 10 BNE - Branch If Not Equal
- 11 BGT - Branch If Greater Than
- 12 BLT - Branch If Less Than
- 13 AND - Bitwise And
- 14 ORR - Bitwise Or
- 15 EOR - Bitwise Xor
- 16 MVN - Bitwise Not
- 17 LSL - Logical Shift Left
- 18 LSR - Logical Shift Right
- 19 HALT - Halt Program
Operands
The operand can be interpreted in two different ways, if it uses:
- # it refers to a specific value to use
- Rm uses the value stored in register m
LDR - Load
This instruction is to load a value stored in memory into a CPU register.
STR - Store
This instruction is to store a value from a register into memory.
ADD - Add
SUB - Subtract
MOV - Move
This instruction is to copy a value into a register.