-
Notifications
You must be signed in to change notification settings - Fork 2
Bananattack edited this page Mar 5, 2011
·
3 revisions
The Language Reference - Instructions - shr
The command this: shr
shifts the contents of this right by one bit, shifting the rightmost bit (bit 0) into the carry
flag, and making the leftmost bit (bit 7) a zero.
This is effectively division by 2. The zero
and negative
p-flags are modified accordingly.
Usage | Opcode, 6502 mnemonic |
---|---|
a: shr |
0x4A, lsr
|
@direct: shr |
0x4E, lsr
|
@direct[x]: shr |
0x5E, lsr
|
@zp: shr |
0x46, lsr
|
@zp[x]: shr |
0x56, lsr
|