Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: Challenge

2005-06-09 by Ralph Hilton

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

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.