Skip to Main Content
The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition
book

The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition

by Lyla B. Das
May 2024
Intermediate to advanced content levelIntermediate to advanced
665 pages
23h 2m
English
Pearson India
Content preview from The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition
PROGRAMMING CONCEPTS  III 155
It is important to be very clear about stack operations if you plan to use the stack. Any wrong
alteration of the stack can cause a system crash.
Stack Overfl ow and Underfl ow
SP can have a maximum value of FFFFH. For each PUSH operation, the SP value decrements
by 2, and in the limiting case, it can go to SP = 0000.
Any PUSH operation beyond this will cause a ‘stack overfl ow’.  is creates a condition
when there is no space in the stack for new data.
Stack underfl ow is the other case when POP operations cause SP to have values beyond
the defi ned top of stack.
4.3 | Macros
e name of our assembler is ‘Macro assembler’. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microprocessors and Microcontrollers  by Pearson

Microprocessors and Microcontrollers by Pearson

Lyla B Das

Publisher Resources

ISBN: 9781282663169