Description:
Advance the stack pointer by N bytes. The new data place on the stack is arbitrary and needs to be initialized before use.
Data (1 byte):
unsigned byte: Single byte value desgnating how far to advance the stack pointer. The maximum is therefore 255 bytes.
Pseudo Code:
byteVal = program[pc + 1]
sp = sp + byteVal
pc = pc + 2
Flags Affected:
Possible Errors:
Example:
pushn 3
Before
| stack | | | top | | 1 | 0xAA | | 2 | 0x32 | | 3 | 0x02 | | 4 | 0x23 | | 5 | 0x68 | | 6 | 0x26 | | | bottom |
|
| | After
| stack | | | top | | 1 | 0xXX | | 2 | 0xXX | | 3 | 0xXX | | 4 | 0xAA | | 5 | 0x32 | | 6 | 0x02 | | 7 | 0x23 | | 8 | 0x68 | | 9 | 0x26 | | | bottom |
|
|
version: 1.0, build n.a.
© Copyright 1994-2012 Acroname, Inc., Boulder, Colorado. All rights reserved.