Remote-processing BASIC 52 Manuel d'utilisateur Page 109

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 163
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 108
1 2 ... 104 105 106 107 108 109 110 111 112 113 114 ... 162 163

Commentaires sur ces manuels

Pas de commentaire