avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] Re: [bug #24231] AVR Mistakes Value in Register


From: Chris Troutner
Subject: [avr-libc-dev] Re: [bug #24231] AVR Mistakes Value in Register
Date: Tue, 9 Sep 2008 14:27:15 -0700

I'm using the latest, 1.6.2 of AVR Libc. As to the rest, I'm using whatever
comes with the latest 20080610 release of WinAVR.

I've noticed some discrepancy in simulation behavior in AVR Studio between
the Simulator, Simulator 2, and use of JTAG mkII for emulation.

If you set a break point at the "service = 0" line, and then go to
dissassebly when the simulator reaches that point, you should see it call
the "STS 0x0100,R1" instruction. Are you not seeing it on your machine?

I was able to get around it by using the instruction "service &= ~(1<<0)".

Chris

On Tue, Sep 9, 2008 at 12:16 PM, Eric Weddington <address@hidden>wrote:

>
> Follow-up Comment #1, bug #24231 (project avr-libc):
>
> What versions are you using of binutils, gcc, and avr-libc?
>
> When I compile your code, I do not see where r1 is getting set to a value
> of
> 1.
>
>    _______________________________________________________
>
> Reply to this item at:
>
>  <http://savannah.nongnu.org/bugs/?24231>
>
> _______________________________________________
>  Message sent via/by Savannah
>  http://savannah.nongnu.org/
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]