avr-gcc-list
[Top][All Lists]
Advanced

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

[avr-gcc-list] avr-gcc bug - Part 2


From: Peter Bosscha
Subject: [avr-gcc-list] avr-gcc bug - Part 2
Date: Wed, 28 Feb 2001 12:20:50 +0200

Please be aware that I'm using Win NT, downloaded my stuff from:
 
http://combio.de/avr/ (Also pointed to from www.avrfreaks.net)
 
Tried to change processors that did not help either.
My code looks as follows:
 
.global main
main:
/* prologue: frame size=0 */
     ldi r28,lo8(__stack - 0)
     ldi r29,hi8(__stack - 0)
     out __SP_H__,r29
     out __SP_L__,r28
/* prologue end (size=4) */
     ldi r24,lo8(0)
     rcall mycall
     mov r28,r24
     ldi r24,lo8(1)
     rcall mycall
     mov r29,r24
.L11:
     tst r28
     breq .L11
     ldi r24,lo8(0)
     rcall mycall
     tst r24
     brge .L12
     tst r29
     brne .L13
     rjmp .L11
.L12:
     ldi r24,lo8(1)
     rcall mycall
     rjmp .L11
.L13:
     ldi r24,lo8(2)
     rcall mycall
     rjmp .L11
__stop_progIi__:
     rjmp __stop_progIi__
/* epilogue end (size=1) */
/* function main size 27 (22) */
 
Differences between this code and Dennis's are:
- registers handling (R28 / R29)
- BRGE instruction instead of BRLT
 
The only possible solution in my mind is that the fix has not found its way from Linux into the Windows version.
 
 

reply via email to

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