192k views
5 votes
Suppose your stack was allocated to be between addresses 0x10001000 and 0x100011FF. Imagine the stack pointer was currently pointing at 0x10001174. How many more words can you push to the stack and not have a problem for the following 4 stack policies:

a. Empty ascending

b. Empty descending

c. Full ascending

d. Full descending

User Edap
by
4.5k points

1 Answer

1 vote

Answer:

a = 35

b = 93

c =34

d = 93

Step-by-step explanation:

Check the attachment for step to step explanation.

Suppose your stack was allocated to be between addresses 0x10001000 and 0x100011FF-example-1
Suppose your stack was allocated to be between addresses 0x10001000 and 0x100011FF-example-2
User Pranta Palit
by
4.5k points