|
From: | Maurizio Ferraris |
Subject: | Re: [avr-gcc-list] Puzzling behaviour of rjmp in assembler |
Date: | Thu, 12 Dec 2002 20:14:29 +0100 |
> 00000000 <i2c_delay_T2>: > 0: 00 c0 rjmp .+0 ; 0x2 > 2: ff cf rjmp .-2 ; 0x2 > 4: fe cf rjmp .-4 ; 0x2 > 6: fd cf rjmp .-6 ; 0x2 > 8: 08 95 ret
I guess you should write rjmp .+2 as the rjmp +2 results in an absolute jump to the address 2. Don't know if this is related to the version ... Regards. Mau. _____________________________________________________________ Maurizio Ferraris mailto:address@hidden Via Borgonuovo 27 mailto:address@hidden 10040 GIVOLETTO TO ITALY http://www.studioferraris.it Public key: http://www.studioferraris.it/Files/Maurizio.asc avr-gcc-list at http://avr1.org
[Prev in Thread] | Current Thread | [Next in Thread] |