Description:
Data (1 byte):
byte: byte value that represents the offset from the top of the stack stack to the short value being pushed.
Pseudo Code:
offset = program[pc + 1];
shortVal = (short) stack[sp - offset];
stack[sp] = shortVal;
sp = sp + 2
pc = pc + 2
Flags Affected:
Possible Errors:
Example:
pushss 3
Before
| stack | | | top | | 1 | 0x80 | | 2 | 0x00 | | 3 | 0xAA | | 4 | 0x32 | | 5 | 0x02 | | | bottom |
|
| | After
| stack | | | top | | 1 | 0x00 | | 2 | 0xAA | | 3 | 0x80 | | 4 | 0x00 | | 5 | 0xAA | | 6 | 0x32 | | 7 | 0x02 | | | bottom |
|
|
version: 1.0, build n.a.
© Copyright 1994-2012 Acroname, Inc., Boulder, Colorado. All rights reserved.