Remote-processing BASIC 52 Manual do Utilizador Página 109

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 163
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 108
RPBASIC-52 PROGRAMMING GUIDE
2-90
PUSH
Syntax: PUSH expr1 [,expr2,...]
Where: expr is a numeric value
Function: Puts the value of expr to the argument stack. The first value PUSHed and is the last POPped.
Mode: Command, run
Use: PUSH X,Y
Cards: All
DESCRIPTION
PUSH and POP instructions pass values to Basic subroutines. The last value pushed is the last expression in
the PUSH instruction, and is also the first popped off the stack. Multiple expressions can be pushed onto the
argument stack by separating the expressions with commas.
The PUSH and P OP instructions alleviate som e of the problem s of global variables in Basic. The y eliminate
the need to equate subroutine variables to global variables used by the program which called the subroutine.
The stack is cleared when a new program is loaded using EXECUTE.
RELATED
POP, LD@, ST@
ERROR
A-STACK Attempt to push too many values on the argument stack. Typically no more than 32 values may
be PUSHed onto the stack before it is full.
EXAMPLE
Please refer to the POP example.
Vista de página 108
1 2 ... 104 105 106 107 108 109 110 111 112 113 114 ... 162 163

Comentários a estes Manuais

Sem comentários