views:

100

answers:

2

What'll be the behaviour of the 8086 Microprocessor when the stack is full and even then I push something into it?

+2  A: 

There is no end. I mean the stack in these processors has a reverse order (from right to left). So it will go on up to a rom block or the end of memory. This causes an exception in the processor wich could soft reset itself.

Charlie
+2  A: 

The 8086 has no 'protected mode', therefore no 'guard page at the bottom of the stack', therefore no well-defined exception. Instead your push will overwrite whatever code or data is below the bottom of the stack, which will eventually (but not immediately) result in "undefined behaviour" if that code is executed or that data is used.

ChrisW