Description:
Pop the top short off of the stack and add it to the new top short on the stack.
Pseudo Code:
shortVal = stack[sp - 2]
sp = sp - 2
stack[sp - 2] = stack[sp - 2] + shortVal
pc = pc + 1
Flags Affected:
Possible Errors:
Example:
adds
Before
| stack | | | top | | 1 | 0x3C | | 2 | 0x7E | | 3 | 0xAB | | 4 | 0x27 | | | bottom |
|
| | After
| stack | | | top | | 1 | 0xE7 | | 2 | 0xA5 | | | bottom |
|
|
version: 1.0, build n.a.
© Copyright 1994-2012 Acroname, Inc., Boulder, Colorado. All rights reserved.