Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Re: Challenge

2005-06-09 by Zack Widup

Yes but can you do it without the push and pop?  The original suggestion 
was to do it without the use of any other registers or places to store it.

I figured it had to do with some Boolean operations but didn't sit long 
enough to figure out which ones.

Zack (W9SZ)


On Thu, 9 Jun 2005 stevech@san.rr.com wrote:

> 
> and to swap two registers: and ye ole:
> 
> push r1
> 
> mov r1,r2   ; r1 = r2
> 
> pop r2
> 
> more cycles than eor's
>

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.