Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Re: Challenge

2005-06-09 by wg0z@aol.com

A = A XOR B
B = B XOR A
A = A XOR B 
 
-----Original Message-----
From: Zack Widup <w9sz@prairienet.org>
To: AVR-Chat@yahoogroups.com
Sent: Thu, 9 Jun 2005 12:45:19 -0500 (CDT)
Subject: Re: [AVR-Chat] Re: Challenge


I could argue that you're using another register for that!  :-)

(I have used that on rare occasions though).

Zack


On Thu, 9 Jun 2005, James Hatley wrote:

> Roll through carry.
> 
> Jim
> 
> >
> > 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



 
Yahoo! Groups Links

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.