请输入您要查询的字词:

 

单词 PUSH
释义
PUSH

Electronics and Electrical Engineering
  • An operation required in many systems to store a return address of a section of code when the normal sequence of instructions is changed. For example, when an interrupt occurs, a program’s normal sequential flow will be changed but returned to at some subsequent time. On many computing systems a special section of memory, called the stack, is allocated for storing these return addresses. Placing addresses onto, and removing them from, the stack are normally achieved by the operations PUSH and POP. A special register, normally referred to as the stack pointer (SP), is used to address the stack.

    The PUSH instruction places a value, taken from a register, onto the stack. Thus:

    PUSH A

    will cause the value in the A register to be left at the top-of-stack position determined by the current value of the stack pointer. The POP instruction reverses this effect. Thus:

    POP B

    would load B with the value taken from the top of stack. The names PUSH and POP given to these instructions reflect the image of the stack as a spring-powered store of values; new items added to the top ‘push down’ the stack, while items taken off cause the values beneath to ‘pop up’.


随便看

 

科学参考收录了60776条科技类词条,基本涵盖了常见科技类参考文献及英语词汇的翻译,是科学学习和研究的有利工具。

 

Copyright © 2000-2023 Sciref.net All Rights Reserved
京ICP备2021023879号 更新时间:2025/3/15 0:57:34