Home »
Digital Archaeology »
Computer Arcana »
Apple »
Apple II »
Re: ROL Instruction
Re: ROL Instruction [message #372499] |
Sat, 18 August 2018 20:49 |
barrym95838
Messages: 130 Registered: April 2013
Karma: 0
|
Senior Member |
|
|
On Tuesday, March 16, 2004 at 8:09:25 PM UTC-7, Paul Guertin wrote:
> ...
>
> Quiz: what's the shortest 6502 code that will swap nibbles
> in a byte (e.g. $6D will become $D6, $81 will become $18, etc.)?
>
> Paul Guertin
> **@*******
ASL
ADC #$80
ROL
ASL
ADC #$80
ROL
Credit to David Galloway. I don't know if he invented the
technique or just drew attention to it.
Mike B.
|
|
|
Goto Forum:
Current Time: Fri Apr 19 05:55:46 EDT 2024
Total time taken to generate the page: 0.12601 seconds