Lecture 01 Flashcards

1
Q

What part of the computer uses the ‘Fetch-execute cycle’

A

The CPU (Central Processing Unit)

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

What is an ISA?

A

Instruction set architecture

ISAs are sets of instructions understood by a CPU:

  • Their encoding into bits
  • Their meanings
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What syntax is this line of code in:

imulq $86, (%rax), %rcx

A

AT&T Assembler Syntax

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

What syntax is this line of code in:

imul rcx, qword ptr [rax], 86

A

Intel Syntax

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

In intel syntax, what type of operation does the following denote:
imul

A

Signed integer multiplication

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

In intel syntax, what type of operation does the following denote:
qword

A

quadword

This means that this is a 64

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

In the following assembler code, what does ‘rax’ refer to?

imul rcx, qword ptr [rax], 86

A

‘rax’ is the name of one of the computer’s registers

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