Assembly Language Flashcards

1
Q

What does the Assembler do?

A

Translates the Assembly Language Program into Machine Code for Execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are Logical Bitwise Operators?

A

Instructions for logical operation, using in mnemonics, e.g.: HALT to stop the execution of the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Mnemonic - ‘Loading the Value Stored in the Memory Location to register d.

A

LDR Rd, <memory></memory>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Mnemonic - ‘Storing the Value in Register d to a Memory.’ Location

A

STR Rd, memory ref

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Mnemonic - ‘Adding the value specified in<operand> to the value in register n to store the result in register d.'</operand>

A

ADD Rd, Rn, <operand></operand>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Mnemonic - ‘Subtracting the value specified in<operand> to the value in register n to store the result in register d.'</operand>

A

SUB Rd, Rn, <operand></operand>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Mnemonic - ‘Copy the value specified by <operand> into register d.'</operand>

A

MOV Rd, <operand></operand>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Mnemonic - ‘Compare the value stored in register n with the value specified by <operand>.'</operand>

A

CMP Rn, <operand></operand>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Mnemonic - ‘Branching always to the instruction at position <label> in the program.’</label>

A

B <label></label>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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>

A

B<condition> <label></label></condition>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Possible values for <condition> when Branching out can be:</condition>

A

EQ = Equal to
NE = Not Equal to
GT = Greater than
LT = Less than

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Mnemonic - ‘Stops the execution of the program.’

A

HALT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What ways can operand be interpreted?

A

= 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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>

A

AND Rd, Rn, <operand></operand>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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>

A

ORR Rd, Rn, <operand></operand>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Mnemonic - ‘Perform a bitwise logical XOR operation between the value in reg n and the value specified by <operand> and store the result in reg d.'</operand>

A

EOR Rd, Rn, <operand></operand>

17
Q

Mnemonic - ‘Perform a bitwise logical NOT operation on the value specified by <operand> and store the result in reg d.'</operand>

A

MVN Rd, <operand></operand>

18
Q

Mnemonic - ‘Logically shift left the value stored in the reg n by the num of bits specified by <operand> and store the result in register d>.'</operand>

A

LSL Rd, Rn, <operand></operand>

19
Q

Mnemonic - ‘Logically shift right the value stored in the reg n by the num of bits specified by <operand> and store the result in register d>.'</operand>

A

LSR Rd, Rn, <operand></operand>

20
Q

How to perform Two-Compliment using a NOT function with bitewise operators?

A

MVN R1 #01100111B
ADD R1, R1, #1

21
Q

What does the B at the end of numbers mean?

A

The operation B indicates that a binary value rather than a decimal value when performing calculations.

22
Q
A