10.07.2015 Views

8088/8086 Instruction I

8088/8086 Instruction I

8088/8086 Instruction I

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

What is a Stack ?<strong>Instruction</strong>s for Stack Operations— A stack is a collection of memory locations. It always follows the rule oflast-in-firs-out— Generally, SS and SP are used to trace where is the latest date written into stackPUSH Source— Push data (word) onto stack— It does not modify flags— For Example: PUSH AX (assume ax=1234H, SS=1000H, SP=2000Hbefore PUSH AX)1000:1FFD??1000:1FFD??1000:1FFE??SS:SP1000:1FFE341000:1FFF??1000:1FFF12SS:SP1000:2000??1000:2000??12 34Before PUSH AX, SP = 2000HAfter PUSH AX, SP = 1FFEHAX Decrementing the stack pointer during a push is a standard way of implementing stacks in hardware8-7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!