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:11:32 -0400  wg0z@aol.com wrote:

>A = A XOR B
>B = B XOR A
>A = A XOR B 

You got it. Your turn to post a puzzle :-)

>> > 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?
>> > --

--
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.