Professional Documents
Culture Documents
PUSHA (push all) instruction: copies the registers to the stack in the following
order: AX, CX, DX, BX, SP, BP, SI and DI.
[11] Which registers move onto the stack for a PUSHAD instruction?
PUSHAD: push the contents of the 32-bit register set found in 80386 through
the pentium4 in the following: EAX, ECX, EDX, EBX, ESP, EBP, ESI and EDI.
[12] Describe the operation of each of the following instructions :
(a)
(b)
PUSH AX
POP EAX
[14] What registers are placed on the stack by the PUSHA instruction? In
what order?
PUSHA (push all) instruction: copies the registers to the stack in the
following order: AX, CX, DX, BX, SP, BP, SI and DI into the stack.
PUSHAD: copy the contents of the 32-bit register in the following: EAX, ECX,
EDX, EBX, ESP, EBP, ESI and EDI into the stack.
[16] Which instruction places the EFLAGS on the stack in the Pentium 4
microprocessor?
PUSHFD
[17] Explain what happens when the PUSH BX instruction executes.
Make sure to show where BH and BL are stored. (Assume that SP =
0100H and SS = 0200H.)
The instruction copies the contents of BX onto the stack where address SS:
[SP-1] =BH, SS: [SP-2] =BL and after instruction execution SP=SP -2.
Stack location= SS*10H+SP=02100H
BH stored at location 020FFH
BL stored at location 020FEH
SP becomes FEH
[18] Repeat above question for the PUSH EAX instruction.
[21] What does the REP prefix accomplish and what type of instruction is
it used with?