Description:
Pop the top byte on the stack as a shift count N. Shift the new top short and Carry bit to the right N times.
Pseudo Code:
N = stack[sp - 1]
sp = sp - 1
stack[sp - 2] = ((short) stack[sp - 2]) >> N
pc = pc + 1
Flags Affected:
Possible Errors:
Example:
rrs
Before
| stack | | | top | | 1 | 0x03 | | 2 | 0xF8 | | 3 | 0x3E | | | bottom |
|
| | After
| stack | | | top | | 1 | 0xDF | | 2 | 0x07 | | | bottom |
|
|
version: 1.0, build n.a.
© Copyright 1994-2012 Acroname, Inc., Boulder, Colorado. All rights reserved.