8b Assembly Language Flashcards

1
Q

What are the two different assembly instruction sets?

A

RISC
CISC

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

What are the three main downsides of assembly language?

A

Hard for humans to understand
Takes longer to program
Processor specific

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

List 3 advantages of RISC

A
  1. Simple circuits so more room for cache and registers
  2. Each instruction is executed in one clock cycle
  3. Low energy requirements
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Name 2 advantages of CISC

A
  1. Has more advanced commands making programming easier
  2. Makes more efficient use of RAM
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Where is RISC used?

A

Low power devices such as smartwatches

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

Where is CISC used?

A

Devices such as laptops and PCs

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

What are the two types of addressing?

A

Immediate and Direct

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

What is immediate addressing?

A

Data to be used is hard coded e.g. ADD #7
The number 7 is added

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

What is direct addressing?

A

Data must first be found from main memory e.g. ADD 7
Doesn’t actually add 7 it adds whatever value is stored in memory address 7

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

What is used to represent the actual value being used

A

#

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

What is the opcode?

A

The opcode is the instruction saying what is to be done with the data

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

What is the operand?

A

The operand is the data/address that is being operated on

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

What does LDR R0 7 do?

A

Loads the data stored in memory address 7 into register 0

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

What does STR R0 7 do?

A

Stores the data in register 0 to memory address 7

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

How do you add in AQA assembly?

A

ADD R0 R1 #7
Adds the number 7 and the data in register 1 together and stores the result in R0

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

How do you subtract in AQA assembly?

A

Sub R0 R1 #4
Subtracts the number 4 from R1 and stores the result in R0

17
Q

How are if statements and loops created in AQA assembly?

A

Labels: GT, LT, EQ NE
If:
CMP R0 #4
B(label) (name of subroutine)
Subroutine:
(Compares data in R0 with the number 4)
For loops put the subroutine above the comparison