January 2012 8.15 Command Set 1715
8.15.62 PUSH WORD ACCUMULATOR ONTO THE DATA STACK (PSW)
Syntax: PSW (PUSH WORDACCU)
Operands: None
Action:
The PSW command enables you to buffer the word accumulator. With the
PSW command, the control copies the word accumulator onto the data stack.
The content of the word accumulator (32 bits) occupies two words on the data
stack. In the event of a stack overflow, the control displays an error message.
Example:
Since the sequence is the same for all stack operations, this example also
applies to the commands PS, PL, PSW, PLL, PLW. The difference between
the individual operations lies merely in the transferred data width.
Call Module 15 at a certain place in the program. After returning to the main
program, restore the original accumulator content. Accumulator content
before the module call: 1A 44 3E 18
8.15.63 PULL LOGIC ACCUMULATOR FROM THE DATA STACK (PLL)
Syntax: PLL (PULL LOGICACCU)
Operands: None
Action:
The PLL command is the counterpart to the PSL command. Data that has been
buffered with the PUSH command can be restored from the data stack by
using the PULL command. The control copies bit 7 of the data stack’s current
address into the logic accumulator. If the stack is empty, the control displays
an error message.
Example:
See PSW command.
Function STL Accumulator
content
Data stack
Buffer the word
accumulator in the data
stack
PSW 1A443E18 1A443E18
Call subroutine 15 CM 15
Restore data stack into
word accumulator.
PLW 1A443E18 1A443E18