Difference between revisions of "Assembly Language"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Operands)
(LDR - Load)
Line 5: Line 5:
  
 
==LDR - Load==
 
==LDR - Load==
 +
This instruction is to load a value stored in memory into a CPU register.
 +
 
==STR - Store==
 
==STR - Store==
 
==ADD - Add==
 
==ADD - Add==

Revision as of 11:17, 6 March 2017

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

ADD - Add

SUB - Subtract

MOV - Move

CMP - Compare

B - Branch

BEQ - Branch If Equal

BNE - Branch If Not Equal

BGT - Branch If Greater Than

BLT - Branch If Less Than

AND - Bitwise And

ORR - Bitwise Or

EOR - Bitwise Xor

MVN - Bitwise Not

LSL - Logical Shift Left

LSR - Logical Shift Right

HALT - Halt Program