ARM assembly language Flashcards

1
Q

general rule for ARM

A

operation, result, 1st operand, 2nd operand

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

what are the places we store values called

A

registers

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

to add registers use the function

A

ADD

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

to move registers use the function

A

MOV

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

which coding language is as close as possible to machine code while still readable by humans

A

assembly language

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

how does programming code like c, java get to being machine code

A

translation

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

what is an operator

A

the instruction

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

what is an operand

A

values

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

what program translates from assembly language into machine code

A

assembler program

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

what type of relationship is there between machine code and assembly language

A

1-1 ie, in java, many operations can lead to 1 machine code instruction where as assembly language is more 1-1

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

how to assign an immediate value to a register

A

MOV R3, #0

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

operator for multiplication

A

MUL

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

operator for load register

A

LDR

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

Why is it better to use load register than an immediate value

A

larger values can be assigned using ldr

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

what will happen if the value you used in immediate value and MOV is too big

A

an error message

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

what is the initial values of registers

A

They have none, should assig them with a value even if its just 0

17
Q

what does it mean to provide meaningful comments on code

A

eg what the contents of the registers are, as if someone else will have to read and understand it

18
Q

can immediate values be used in multiplication

A

no, must be loaded onto a register first

19
Q

on how many registers at a time can instructions be preformed on

A

2