3.7.3.5 Machine-Code/Assembly Language Operations. Flashcards
Outline the AQA assembly language for LOAD.
LDR Rx,
Describe LOAD.
Load the value stored in the
memory location specified by into
register x.
Outline the AQA assembly language for STORE.
STR Rx,
Describe STORE.
Store the value that is in register x into the memory location specified by .
Outline the AQA assembly language for ADD.
ADD Rx, Ry,
Describe ADD.
Add the value specified by
to register y and
store the result in register x.
Outline the AQA assembly language for SUBTRACT.
SUB Rx, Ry,
Describe SUBTRACT.
Subtract the value specified by from the value in register y and store the result in register x.
Outline the AQA assembly language for MOVE.
MOV Rx,
Describe MOVE.
Copy the value specified by
into register x.
Outline the AQA assembly language for COMPARE.
CMP Rx,
Describe COMPARE.
Compare the value stored in register x with the value specified by .
Outline the AQA assembly language for BRANCH(unconditional).
B
Describe BRANCH (unconditional) .
Always branch to the instruction at the position specified by
in the program.
Outline the AQA assembly language for BRANCH (conditional).
B
Describe BRANCH (conditional).
Branch to the instruction at position if the last comparison met the criterion specified by . Possible values for are: ● EQ: equal to ● NE: not equal to ● GT: greater than ● LT: less than
Outline the AQA assembly language for Logical AND.
AND Rx, Ry,
Describe logical AND.
Perform a bitwise logical AND operation between the value in register y and the value specified by and store the
result in register x.
Outline the AQA assembly language for logical OR.
OR ORR Rx, Ry,
Describe Logical OR.
Perform a bitwise logical OR
operation between the value in register y and the value specified by and store the result in register x
Outline the AQA assembly language for logical XOR.
OR EOR Rx, Ry,
Describe Logical XOR.
Perform a bitwise logical XOR (exclusive or) operation between the value in register y and the value specified by
and store the result in register x.
Outline the AQA assembly language for Logical NOT.
T MVN Rx,
Describe Logical NOT.
Perform a bitwise logical NOT operation on the value specified by and store the result in register x.
Outline the AQA assembly language for logical shift left.
LSL Rx, Ry,
Describe Logical Shift Left.
Logically shift left the value stored in register y by the number of bits specified by and store the result in register x.
Outline the AQA assembly language for logical shift right.
LSR Rx, Ry,
Describe Logical Shift Right.
Logically shift right the value stored in register y by the number of bits specified by and store the result in register x.
Outline the AQA assembly language for halt.
HALT
Describe Halt.
Stops the execution of the
program.