Description:
Pop a byte off the stack then use that byte value as a count for popping additional bytes off of the stack and throwing them away. The data is lost and no flags are altered with this operation.
Pseudo Code:
byteVal = program[pc + 1]
sp = sp - byteVal
pc = pc + 2
Flags Affected:
Possible Errors:
Example:
popnx
Before
| stack | | | top | | 1 | 0x05 | | 2 | 0x0B | | 3 | 0x17 | | 4 | 0xAA | | 5 | 0x32 | | 6 | 0x02 | | 7 | 0x23 | | 8 | 0x68 | | 9 | 0x26 | | | bottom |
|
| | After
| stack | | | top | | 1 | 0x23 | | 2 | 0x68 | | 3 | 0x26 | | | bottom |
|
|
version: 1.0, build n.a.
© Copyright 1994-2012 Acroname, Inc., Boulder, Colorado. All rights reserved.