Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Apple » Apple II » Re: ROL Instruction
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: ROL Instruction [message #372499] Sat, 18 August 2018 20:49
barrym95838 is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: [announcement] Graffidisk, the Applesauce companion
Next Topic: tool to read boot sector ?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Apr 19 05:55:46 EDT 2024

Total time taken to generate the page: 0.12601 seconds