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.
Message
Re: [AVR-Chat] Re: Challenge
2005-06-09 by James Hatley
Attachments
- No local attachments were found for this message.