3.7.3.5 Machine-Code/Assembly Language Operations. Flashcards

1
Q

Outline the AQA assembly language for LOAD.

A

LDR Rx,

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

Describe LOAD.

A

Load the value stored in the
memory location specified by into
register x.

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

Outline the AQA assembly language for STORE.

A

STR Rx,

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

Describe STORE.

A

Store the value that is in register x into the memory location specified by .

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

Outline the AQA assembly language for ADD.

A

ADD Rx, Ry,

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

Describe ADD.

A

Add the value specified by
to register y and
store the result in register x.

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

Outline the AQA assembly language for SUBTRACT.

A

SUB Rx, Ry,

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

Describe SUBTRACT.

A

Subtract the value specified by from the value in register y and store the result in register x.

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

Outline the AQA assembly language for MOVE.

A

MOV Rx,

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

Describe MOVE.

A

Copy the value specified by

into register x.

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

Outline the AQA assembly language for COMPARE.

A

CMP Rx,

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

Describe COMPARE.

A

Compare the value stored in register x with the value specified by .

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

Outline the AQA assembly language for BRANCH(unconditional).

A

B

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

Describe BRANCH (unconditional) .

A

Always branch to the instruction at the position specified by
in the program.

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

Outline the AQA assembly language for BRANCH (conditional).

A

B

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

Describe BRANCH (conditional).

A
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
17
Q

Outline the AQA assembly language for Logical AND.

A

AND Rx, Ry,

18
Q

Describe logical AND.

A

Perform a bitwise logical AND operation between the value in register y and the value specified by and store the
result in register x.

19
Q

Outline the AQA assembly language for logical OR.

A

OR ORR Rx, Ry,

20
Q

Describe Logical OR.

A

Perform a bitwise logical OR

operation between the value in register y and the value specified by and store the result in register x

21
Q

Outline the AQA assembly language for logical XOR.

A

OR EOR Rx, Ry,

22
Q

Describe Logical XOR.

A

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.

23
Q

Outline the AQA assembly language for Logical NOT.

A

T MVN Rx,

24
Q

Describe Logical NOT.

A

Perform a bitwise logical NOT operation on the value specified by and store the result in register x.

25
Q

Outline the AQA assembly language for logical shift left.

A

LSL Rx, Ry,

26
Q

Describe Logical Shift Left.

A

Logically shift left the value stored in register y by the number of bits specified by and store the result in register x.

27
Q

Outline the AQA assembly language for logical shift right.

A

LSR Rx, Ry,

28
Q

Describe Logical Shift Right.

A

Logically shift right the value stored in register y by the number of bits specified by and store the result in register x.

29
Q

Outline the AQA assembly language for halt.

A

HALT

30
Q

Describe Halt.

A

Stops the execution of the

program.