slae assembly primer Flashcards

1
Q

What is the int operation?

A

interrupt, eg int 0x80 is system call

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

What are the fundamental data types?

A

Byte, Word, Double Word, Quad Word, Double Quad Word

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

How many bits is a byte?

A

8

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

How many bits is a word?

A

16

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

How many bits is a double word?

A

32

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

How many bits is a quad word?

A

64

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

How many bits is a double quad word?

A

128

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

What is a signed data structure?

A

A signed word uses 31 bits to store the value and the most significant bit to store the sign (+/-)

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

What is an unsigned data structure?

A

All 32 bits are used to store the value

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

What does eax equal - mov eax, message ?

A

$eax = *message , or address of message

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

What does eax equal: mov eax, [message] ?

A

$eax = message, or the value of message

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

What is resb 64?

A

Reserve 64 bytes

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

What is resw 1?

A

reserve a word

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

What is the $ special token?

A

evaluates the current line

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

What is the \$\$ special token?

A

evaluates to the beginning of the current section

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

What is the times instruction?

A

Repeat instruction eg times 100 movsb - movsb replicated 100 times

17
Q

What are the four directions for the mov instruction?

A
  1. between registers
  2. Memory to register and register to memory
  3. Immediate data to register
  4. Immediate data to memory
18
Q

What is LEA?

A

Load Effective Address - load pointer values (LEA EAX, [label] sets $eax to pointer of label)

19
Q

What is XCHG?

A

Swap values , XCHG Register, Register or XCHG Register, Memory