unit 2 Assembly Language Flashcards

(62 cards)

1
Q

what is architecture?

A

the programmer’s view of a computer

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

what is architecture defined by?

A

instructions set (language) and operand locations(registers and memory)

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

what are instructions?

A

the words in a computer’s language

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

what is an instruction set?

A

the computer’s vocabulary

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

where might operands come from?

A

memory, registers, or from the instruction itself

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

how does the ARM architecture represent each instruction?

A

as a 32-bit word

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

microarchitecture is?

A

the specific arrangement of registers, memories, ALUs, and other building blocks to form a microprocessor

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

what is assembly language?

A

the human-readable representation of the computer’s native language.

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

what do assembly language instructions specify?

A

the operation to perform and the operands on which to operate

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

what is a mnemonic?

A

a symbolic name for a single executable machine language instruction

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

what is a source operand?

A

the variables the operation is being performed on

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

what is the destination operand?

A

the operand the result is written to

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

what is an example of ARM assembly code for subtraction?

A

SUB a, b, c

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

what is an example of ARM assembly code for addition?

A

ADD a,b,c

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

what does an instruction operate on?

A

operands

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

In ADD a,b,c what are the variables?

A

operands

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

where can operands be stored?

A

registers, memory, or in the instruction itself

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

what is the register set or register file?

A

the 16 registers used by the ARM architecture

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

The fewer the registers the___?

A

faster they can be accessed

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

contents are called Immediate operands because?

A

their values are immediately available from the instruction and do not require a register or memory access

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

what is the move instruction (MOV) useful for?

A

initializing register values small or large

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

what is the difference between memory and register file?

A

memory is larger and slower

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

what variables are kept in the register?

A

frequently used variables

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

ARM architecture instructions operate exclusively on?

A

registers, so data stored in memory must be moved to before it can be processed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Most significant byte (MSB) is?
on the left
26
least significant byte (LSB) is?
on the right
27
the 32-bit word address and data value are given in what number system?
hexadecimal
28
what does the loader register instruction(LDR) do?
allows you to read a data word from memory into a register
29
how big is a each data word?
4 bytes
30
how much bigger is a word address than a word number?
4 times
31
how is a memory address formed?
adding the contents of the base register and the offset
32
what does # represent?
the immediate
33
what is the store register instruction (STR) used for?
to write a data word from a register into memory
34
how are byte-addressable memories organized?
in a big-endian or little-endian fashion
35
In both big-endian and little-endian the most significant by (MSB) is where?
on the left and the LSB is on the right
36
how are bytes numbered in big-endian?
starting with o at the big(most significant) end (left end).
37
how are bytes numbered in little-endian?
starting with 0 at the little(least significant) end (right end).
38
What is an example of a Register?
R0 " register 0)
39
what are the saved registers?
R4-R11
40
what do R4-R11 hold?
variables
41
what are the temporary registers?
R0-R3 and R12
42
what do R0-R3 and R12 hold?
intermediate values
43
how many bits of precision must a constant have?
< 8
44
how many registers can MOV use?
2 registers
45
each data byte has a unique?
address
46
how many bytes does a 32-bit word equal?
4 bytes
47
a word address increments by?
4
48
address of memory word must be multiplied by?
4, 2x4 = 8
49
AND and BIC are useful For?
masking bits
50
how would AND or BIC mask 0xF234012F (AND or BIC) 0x000000FF ?
0x0000002F
51
what is ORR useful for?
combining bit fields
52
how would ORR combine 0xF2340000 with 0x00012BC?
0xF23412BC
53
what is the conditional flag N?
negative, instruction result is negative
54
what is the conditional flag Z?
zero, instruction results in zero
55
what is the conditional flag C?
Carry, instruction causes an unsigned carry
56
what is the conditional flag V?
Overflow, instruction causes an overflow
57
where can Conditional Mnuemonics be added to Mnuemonic like SUB?
the end
58
what does a branch allow you to do?
enable out of sequence instruction execution
59
what are the types of branches?
Branch(B) and Branch and link(BL)
60
what do branches point to?
labels
61
what is a Label?
an instruction location
62
do branches have to be conditional?
no, they can be unconditional