Description:
Pop the top short on the stack and place it in the stack as specified by the 0-based absolute (from bottom) offset parameter.
Data (2 bytes):
offset: offset into the stack where the short popped from the top of the stack is to be stored.
Pseudo Code:
absIndex = (short) program[pc + 1]
shortVal = stack[sp - 2];
stack[absIndex] = shortVal
sp = sp - 2
pc = pc + 3
Flags Affected:
Possible Errors:
Example:
popssa 0x0003
Before
| stack | | | top | | 1 | 0x03 | | 2 | 0xAA | | 3 | 0x32 | | 4 | 0x02 | | 5 | 0x23 | | 6 | 0x68 | | 7 | 0x26 | | | bottom |
|
| | After
| stack | | | top | | 1 | 0x03 | | 2 | 0xAA | | 3 | 0x23 | | 4 | 0x68 | | 5 | 0x26 | | | bottom |
|
|
version: 1.0, build n.a.
© Copyright 1994-2012 Acroname, Inc., Boulder, Colorado. All rights reserved.