Lecture 03 Flashcards

1
Q

What does it mean if memory is Word Addressed?

A

There is an individual address for each word.

Extra information is used to refer to a specific byte within a word.

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

What does it mean if memory is Byte Addressed?

A

There is one address for each 8 bit byte (octet).

Here, the lowest address in the word stands for the word.

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

What is the difference between ‘big-endian’ and ‘little-endian’ in reference to memory addressing?

A

In big-endian addressing, the bytes of the data are stored chronologically in memory with the first byte in the first address, and the last byte at the last.

In little-endian addressing, the data is stored with the first byte in the first byte in the last address and the last byte in the firs t address etc.

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

What is ‘immediate mode’ for memory addressing?

A

The value is specified in the instruction itself.

This is used for constants.

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

What is ‘direct mode’ for memory addressing?

A

The value is at a fixed address which is specified in the instruction. This is used for ‘global variables’

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

What is ‘index mode’ for memory addressing?

A

The value is at a fixed address plus an index obtained from a register. This allows a = b[i] to be implemented in one instruction.

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

What is ‘indirect mode’ for memory addressing?

A

The value is at a fixed address which is in a register.

It has extra power relative to immediate and direct modes.

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

What does CISC stand for?

A

Complex Instruction Set Computer

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

What does RISC stand for?

A

Reduced Instruction Set Computer

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

Suppose we have a hexadecimal number 0xDEADBEEF.

It is stored DEADBEEF in memory. Is this little-endian or big-endian?

A

Big-Endian

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

Suppose we have a hexadecimal number 0xDEADBEEF.

It is stored EFBRADDE in memory. Is this little-endian or big-endian?

A

Little-Endian

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

Is x86 a CISC or a RISC ISA?

A

CISC. There are many different lengths of instructions.

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

How many general purpose 64-bit registers does a 64-bit x86 chip have?

A

16

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

How many general purpose 32-bit registers does a 32-bit x86 chip have?

A

8

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

On 64-bit x86, which register is the lower 32 bits of the register ‘rax’?

A

eax

For all of the registers ‘rax - rsp’, the lower halves are accessed by replacing the ‘r’ with an ‘e’.

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

On 64-bit x86, which register is the lower 32 bits of the register ‘r13’?

A

r13d.

For all of the numbered registers, the lower half is accessed with ‘d’ at the end.