Index | PAL Intro | Commands | Registers | Indices | Stack | Macros | Classes | Attributes | Errors


Manual Reference Pages  - stack_push (5)

NAME

stack/push - Pushes data onto program stack

CONTENTS

Synopsis
Description
Error Handling
Examples
See Also
Author

SYNOPSIS

stack/push read <, read ... >

DESCRIPTION

Pushes data items identified by one or more read arguments, onto the program stack. Any registers supplied as arguments will be subsequently zeroed (i.e. will contain PSUNIT_TYPE_NULL). If this behaviour is undesired, use "reg/load PUSH, read" instead.

ERROR HANDLING

A runtime error occurs if an object referenced in one the arguments does not exist.

EXAMPLES

stack/push P0, P1
  Pushes registers P0 and P1 onto the program stack.
stack/push &[~data1]
  Pushes pointer to data segment called data1 onto the program stack.

SEE ALSO

pal_commands(5), pal_registers(5), pal_indices(5), pal_stack(5), stack_pull(5),
PROSE Assembly Language at prose.sourceforge.net.

AUTHOR

Copyright (c) 2002-2009 Mark R. Bannister <cambridge@users.sourceforge.net>.

This is free software and can be downloaded from prose.sourceforge.net; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


PAL 1.0 stack_push (5) 24 January 2009
Generated by manServer 1.07 from man5/stack_push.5 using man macros.