home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / zenasmlg / rtf / chapter7 / fig7.13.tif (.png) < prev    next >
Tagged Image File Format  |  1997-06-18  |  201KB  |  750x846  |  16-bit (23,599 colors)
Labels: book | box | bulletin board | reckoner | shelf | sky | slide projector
OCR: Memory 1802 6S 3000 317 FC 777 317FE 9008 31800 Y77 31802 31804 7821 Memory SP 1802 317FC cc 3000 317FE 666 31800 ??? 8006 31802 093C 31804 7821 SP 1804 Memory SS 3000 3 1 7 FC 3 17 FF 777 093C 31800 222 318 02 2LL 31804 7821 FIGURE 7.13 It might appear thar popped daaa still exists in memory since pop merely adds to the stack pointer without altering memory in any way but that's not the case. When A value is popped off the stack, can no longer be relied on to exist in memory because interrupts may occur any time expanding the stack and wiping out any data lving around the area of memory just past the top of the stack. (A) The stack just before pop with the value 93Ch stored at address 31802 the top of the stack The value on top of the stack being popped into AX The completed pop, with SP ...