Instruction Set Architecture Summary Flashcards

Summarise ISA Lectures

1
Q

What does the compiler do?

A

Converts high level language to machine code.

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

What is Assembly language?

A

Human representation of computer’s native language.

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

How would you multiply by 2 in ARM code?

A

LSL (logical shift left).

e.g. LSL R0, R0, #1; R0=R0*2.

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

How would you divide by 2 in ARM code?

A

ASR (arithmetic shift right)

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

What does bit rotation do?

A

Expands number of bits, e.g. 4-bit to 8-bit etc.

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

Why is conditional execution used?

A

User may not want to execute code sequentially. Hence, branch, B, is used.

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

What are the conditional flags?

A
Negative (N), Zero (Z), Carry (C) and Overflow (V).
//Held in Current Program Status Register (CPSR)//
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the program counter do?

A

Points to the location of the next instruction in memory.

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

What are the 3 instruction formats?

A

Data-processing
Memory
Branch

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

In the register, what do the I, P, U, B, W, L acronyms stand for?

A

Immediate, PreIndex, Add, Branch, Writeback and Load.

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

What is the Branch Target Address (BTA)?

A

Next PC when branch taken is relative to current PC+8.
//imm24 encodes BTA.
imm24=#of words BTA is away from PC+8//

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