URL:
<http://savannah.nongnu.org/bugs/?24231>
Summary: AVR Mistakes Value in Register
Project: AVR C Runtime Library
Submitted by: troutner
Submitted on: Tue 09 Sep 2008 06:58:10 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: Unknown
Fixed Release: None
_______________________________________________________
Details:
In the attached files, you'll see the line inside the main() while() loop
with the instruction:
//Clear service variable
service = 0;
service is defined as a volatile uint8_t. When I run the JTAG mkII emulator,
the assembly code for this line is:
STS 0x0100,R1
0x0100 is the address where the value of service is stored. However, R1 is
always 0x01, not 0x00.
Chris Troutner
[EMAIL PROTECTED]
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 09 Sep 2008 06:58:11 PM GMT Name: makefile Size: 16kB By:
troutner
<http://savannah.nongnu.org/bugs/download.php?file_id=16457>
-------------------------------------------------------
Date: Tue 09 Sep 2008 06:58:11 PM GMT Name: periph_init.c Size: 9kB By:
troutner
<http://savannah.nongnu.org/bugs/download.php?file_id=16458>
-------------------------------------------------------
Date: Tue 09 Sep 2008 06:58:10 PM GMT Name: PIR2.c Size: 3kB By: troutner
<http://savannah.nongnu.org/bugs/download.php?file_id=16456>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?24231>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev