|
From: | geo |
Subject: | Re: [avr-gcc-list] if statement problem |
Date: | Sun, 24 Mar 2002 08:09:25 -0800 |
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
- ----- Original Message -----
- From: Paulo Abreu
- To: address@hidden
- Sent: Sunday, March 24, 2002 2:34 PM
- Subject: [avr-gcc-list] if statement problem
- I am doing this peace of code:
- (my problem is expressed in the end)
- *****************************************************************************
- #include <io8535.h>
- #include <io.h>
- #include <interrupt.h>
- #include <sig-avr.h>
- ///////////////////////////////////////////////////////////////////////////////////////////////////
[Prev in Thread] | Current Thread | [Next in Thread] |