15 - Instructions Flashcards

1
Q

How long can x86 instructions be ?

A

From 1 to 15 bytes

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

What three pieces of information do almost all instructions of BINARY codes contain ?

A
  • The action/operation of the instruction
  • The operands
  • Where the result will go
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What three pieces of information do almost all instructions of MACHINE codes contain ?

A

– The operation required eg ADD, CMP, MOV
– The location of operands and results, ie the destination and source of eg AX, BX
– The data types of the operands

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

Types of addressing modes ?

A
  • Immediate (operand) mode: mov eax, 104
  • Regiser: mov eax, ebx
  • Direct: add eax, a
  • Register indirect: mov eax, [ebx]
  • Indexed Register Indirect with displacement: mov eax, table[ebx]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly