Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Re: Challenge

2005-06-09 by James Hatley

Good Job! Jeff ... wg0z ... I wouldn't have thought of that.

Jim  ( k7tt )


----- Original Message ----- 
From: wg0z@aol.com 
To: AVR-Chat@yahoogroups.com 
Sent: Thursday, June 09, 2005 11:11 AM
Subject: Re: [AVR-Chat] Re: Challenge


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



 







Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/AVR-Chat/
  
To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com
  
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

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.