MP9 شرح Stack Segment (PUSH, POP) 80x86

فولتوينو Voltuino
فولتوينو Voltuino
665 بار بازدید - پارسال - The stack is a section
The stack is a section of read/write memory (RAM) used by the CPU to store information temporarily.
The CPU needs this storage area since there are only a limited number of registers.
The main disadvantage of the stack is its access time (the registers are inside the CPU and RAM is outside.)
The two main registers used to access the stack are the SS (stack segment) register and the SP (stack pointer) register.
These registers must be loaded before any instructions accessing the stack are used.
Every register inside the 80x86 (except segment registers and SP) can be stored in the stack and brought back into the CPU from the stack memory.
The storing of a CPU register in the stack is called a push, and loading the contents of the stack into the CPU register is called a pop.
In the 80x86, the stack pointer register (SP) points at the current memory location used for the top of the stack.
As data is pushed onto the stack the stack pointer is decremented. And It is incremented as data is popped off the stack into the CPU.

#voltuino
#فولتوينو
پارسال در تاریخ 1402/01/28 منتشر شده است.
665 بـار بازدید شده
... بیشتر