Description:
Pop the top byte off of the stack and add it to the new top byte on the stack.
Pseudo Code:
byteVal = stack[sp - 1]
sp = sp - 1
stack[sp - 1] = stack[sp - 1] + byteVal
pc = pc + 1
Flags Affected:
Possible Errors:
Example:
addb
Before
| stack | | | top | | 1 | 0x0B | | 2 | 0x17 | | | bottom |
|
| | |
version: 1.0, build n.a.
© Copyright 1994-2012 Acroname, Inc., Boulder, Colorado. All rights reserved.