[Top][All Lists]

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

[avr-gcc-list] Insight & simulavr

From: Klaus Rudolph
Subject: [avr-gcc-list] Insight & simulavr
Date: Fri, 27 Dec 2002 15:43:55 +0100

Hi all, hi Tod,

I saw a funny but absolutly wrong result in testing insight

I compiled a simple program and got the following window 
in insight:
        5       int main() {
-       0x56    <main>:         ldi     r28, 0x5F       ; 95
-       0x58    <main+2>:               ldi     r29, 0x02       ; 2
-       0x5a    <main+4>:               out     0x3e, r29       ; 62
-       0x5c    <main+6>:               out     0x3d, r28       ; 61
-       0x5e    <main+8>:               nop
        6               for (;;) {
-       0x72    <main+28>:              rjmp    .-20            ; 0x60
        7                       a++;
        0x60    <main+10>:              lds     r24, 0x0060
-       0x64    <main+14>:              lds     r25, 0x0061
-       0x68    <main+18>:              adiw    r24, 0x01       ; 1
-       0x6a    <main+20>:              sts     0x0061, r25
-       0x6e    <main+24>:              sts     0x0060, r24
-       0x74    <__stop_progIi__>:              rjmp    .-2             ; 0x74

In address 0x68 the r24/25 register should be added by one, but simulavr
add not
one, it add any possible value. Looking into memory give a total
confused output. Every assembler step the complete memory content 
change :-(
I use:

Maybe some compatibility problems with the downloaded versions??

avr-gcc-list at http://avr1.org

reply via email to

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