63. Show how the value EE1116 from register AX would be pushed onto the top of the stack as it exists in problem 61.
From 61:
current values in stack segment register and stack pointer: C00016 & FF0016.
address of the current top of the stack :CFF00
Registers:-
When functioning in 16-bit modes, such as the Pentium processor does when acting as a Virtual 8086 (Windows 95 uses this mode to display a DOS prompt), the processor gives the programmer access to 14 internal registers, each of which is 16 bits large which are:-
AX, BX, CX, and DX are four general-purpose registers. Each of them consists of a pair of 8-bit registers that can be accessed independently as the "low" bytes (AL, BL, CL, and DL) and the "high" bytes (AH, BH, CH, and DH). As an illustration, if AX holds the 16-bit value of 1234h, AL will have 34h, and AH will have 12h.
The SP, BP, SI, and DI special-purpose registers are included.
Registers have four segments: CS, DS, ES, and SS.
Step by step
Solved in 2 steps