Assembly Language Flashcards
What does the Assembler do?
Translates the Assembly Language Program into Machine Code for Execution
What are Logical Bitwise Operators?
Instructions for logical operation, using in mnemonics, e.g.: HALT to stop the execution of the program
Mnemonic - ‘Loading the Value Stored in the Memory Location to register d.
LDR Rd, <memory></memory>
Mnemonic - ‘Storing the Value in Register d to a Memory.’ Location
STR Rd, memory ref
Mnemonic - ‘Adding the value specified in<operand> to the value in register n to store the result in register d.'</operand>
ADD Rd, Rn, <operand></operand>
Mnemonic - ‘Subtracting the value specified in<operand> to the value in register n to store the result in register d.'</operand>
SUB Rd, Rn, <operand></operand>
Mnemonic - ‘Copy the value specified by <operand> into register d.'</operand>
MOV Rd, <operand></operand>
Mnemonic - ‘Compare the value stored in register n with the value specified by <operand>.'</operand>
CMP Rn, <operand></operand>
Mnemonic - ‘Branching always to the instruction at position <label> in the program.’</label>
B <label></label>
Mnemonic - ‘Branching conditionally to the instruction at position <label> in the program if the last comparison met the criteria specified by the <condition></condition></label>
B<condition> <label></label></condition>
Possible values for <condition> when Branching out can be:</condition>
EQ = Equal to
NE = Not Equal to
GT = Greater than
LT = Less than
Mnemonic - ‘Stops the execution of the program.’
HALT
What ways can operand be interpreted?
= Use the decimal value specified after the #, e.g.: #27 means the number 27
Rn - Use the value stored in register n. e.g.: R6 means use the value stored in register 6.
Mnemonic - ‘Performs a bitwise logical AND operation between the value in register n and the value specified by <operand> and store the result in register d.'</operand>
AND Rd, Rn, <operand></operand>
Mnemonic - ‘Performs a bitwise logical OR operation between the value in reg n and the value specified by <operand> and store the result in reg d.'</operand>
ORR Rd, Rn, <operand></operand>