|
From: | Paulo Abreu |
Subject: | Re: [avr-gcc-list] if statement problem |
Date: | Sun, 24 Mar 2002 15:45:06 -0000 |
It seem that
+00000069: 91200067 LDS
R18,0x0067
+0000006B: 91300065 LDS R19,0x0065 +0000006D: 91900066 LDS R25,0x0066 +0000006F: 3022 CPI R18,0x02 ; 0x02 = 0b00000010 = 2 +00000070: F7F1 BRNE -0x02 ; Destination: 0x00006F +00000071: 2F83 MOV R24,R19 +00000072: 708F ANDI R24,0x0F ; 0x0F = 0b00001111 = 15 +00000073: 3081 CPI R24,0x01 ; 0x01 = 0b00000001 = 1 +00000074: F059 BREQ +0x0B ; Destination: 0x000080 is not correctly converted from C to ASM since BRNE
should be to +00000069 and not
0000006F
Is this a bug, or I am missing something
here?
Paulo Abreu
|
[Prev in Thread] | Current Thread | [Next in Thread] |