Difference between revisions of "Assembly Language"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(B - Branch)
Line 23: Line 23:
  
 
==B - Branch==
 
==B - Branch==
[[File:Assembly Language Branch.png]]
 
 
 
==BEQ - Branch If Equal==
 
==BEQ - Branch If Equal==
 
==BNE - Branch If Not Equal==
 
==BNE - Branch If Not Equal==

Revision as of 08:37, 16 June 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

This instruction is to store a value from a register into memory.

ADD - Add

Operation used to add two numbers together

SUB - Subtract

operation used to subtract two numbers from each other

MOV - Move

This instruction is to copy a value into a register.

CMP - Compare

The CMP instruction compares two operands. It is generally used in conditional execution.

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

HLT - Halt Program

Causes the processor to stop executing your program.