15 - Instructions Flashcards
1
Q
How long can x86 instructions be ?
A
From 1 to 15 bytes
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
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
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]