On Thu, 09 Jun 2005 14:23:54 -0300 you wrote: >On 9 Jun 2005 at 18:35, Ralph Hilton wrote: > >> This one is known but can prove a puzzler if one doesn't know it. >> >> How do you swap the contents of 2 registers without using any other >> registers or stack? > > Using Carry? (ROR or ROL 8 times) Without carry < 8 instructions :-) -- Ralph Hilton http://www.ralphhilton.org C-Meter: http://www.cmeter.org FZAOINT http://www.fzaoint.net
Message
Re: [AVR-Chat] Re: Challenge
2005-06-09 by Ralph Hilton