Description:
Push a byte at a 0-based absolute 2-byte offset from the bottom of the stack onto the top of the stack.
Data (2 bytes):
poffset: offset from the bottom of the stack to the value being pushed.
Pseudo Code:
absStackRef = (unsigned short)program[pc + 1]
stack[sp] = stack[absStackRef]
sp = sp + 1
pc = pc + 3
Flags Affected:
Possible Errors:
Example:
pushsba 0x0001
Before
| stack | | | top | | 1 | 0x00 | | 2 | 0xAA | | 3 | 0x32 | | 4 | 0x02 | | | bottom |
|
| | After
| stack | | | top | | 1 | 0x32 | | 2 | 0x00 | | 3 | 0xAA | | 4 | 0x32 | | 5 | 0x02 | | | bottom |
|
|
version: 1.0, build n.a.
© Copyright 1994-2012 Acroname, Inc., Boulder, Colorado. All rights reserved.