Description:
Increment a short within the stack using a 1-based relative index from the top byte on the stack.
Data (1 byte):
byte: Relative index from the top byte on the stack.
Pseudo Code:
((short) stack[sp - program[pc+1]])++
pc = pc + 2
Flags Affected:
Possible Errors:
Example:
incs 4
Before
| stack | | | top | | 1 | 0x0B | | 2 | 0xFF | | 3 | 0xFF | | 4 | 0x23 | | | bottom |
|
| | After
| stack | | | top | | 1 | 0x0B | | 2 | 0xFF | | 3 | 0x00 | | 4 | 0x24 | | | bottom |
|
|
version: 1.0, build 80903
© Copyright 1994-2008 Acroname, Inc., Boulder, Colorado. All rights reserved.