ucsim: S51 -> Bug in Dump memory command?

2007-12-01
2013-03-12
  • threinbacher
    threinbacher
    2007-12-01

    Hi,

    We are currently working on an 8051 Simulator in Java.

    To verify that our simulator behaves as expected, I'm using your the ucsim S51 Simulator to step through the program and than compare the Memory Dumps of my own Simulator with ucsim.

    I'm using the ucsim that is delivered with sdcc version: sdcc-2.7.0-i386-unknown-linux2.5/
    My kernel Version is: 2.6.22.5-31-default | opensuse 10.3

    By using the Dump Command within S51, it seems that the Last Byte of Memory isn't dumped. So if i dump the iram from 0x00 to 0x80 it only dumps the area from 0x00 to 0x7E.

    For Example:

    linux-nb:~/install_sources/sdcc-2.7.0-i386-unknown-linux2.5/sdcc/bin # ./s51 /root/current_Sources/29-11-2007/28-11-2007/LCD.hex -t 8051
    uCsim 0.5.4, Copyright (C) 1997 Daniel Drotos, Talker Bt.
    uCsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.
    6298 words read from /root/current_Sources/29-11
    -2007/28-11-2007/LCD.hex
    0> reset
    0> dump iram 0x00 0x80
    0x00 00 1c ad d6 fc 30 67 5b .....0g[
    0x08 00 bc d4 b6 3d 1c 3e 22 ....=.>"
    0x10 37 34 a1 e3 87 b6 cf 1e 74......
    0x18 9a ae d2 73 d8 06 21 f1 ...s..!.
    0x20 23 ce c7 1f fe 2e 7a fe #.....z.
    0x28 ea 4e b5 27 6a f3 4a a2 .N.'j.J.
    0x30 27 eb 85 ae a1 54 cd 3b '....T.;
    0x38 02 9f af da a6 d0 cc c9 ........
    0x40 9e 93 e8 9c c2 62 9a ac .....b..
    0x48 b0 4f d4 1a 43 1e bc 6a .O..C..j
    0x50 09 41 19 aa 96 e6 e6 98 .A......
    0x58 85 95 73 2b 65 3f f4 03 ..s+e?..
    0x60 d2 dc 9f 94 3e 39 41 ee ....>9A.
    0x68 89 15 09 cc 33 c5 36 3c ....3.6<
    0x70 07 4f e6 9d 35 cc 35 bb .O..5.5.
    0x78 61 a8 e6 c6 e7 db c9    a......          <----- There is one byte Missing
    0> dump sfr 0x80 0xFF
    0x80 ff 07 00 00 00 00 00 00 ........
    0x88 00 00 00 00 00 00 00 00 ........
    0x90 ff 00 00 00 00 00 00 00 ........
    0x98 00 00 00 00 00 00 00 00 ........
    0xa0 ff 00 00 00 00 00 00 00 ........
    0xa8 00 00 00 00 00 00 00 00 ........
    0xb0 ff 00 00 00 00 00 00 00 ........
    0xb8 00 00 00 00 00 00 00 00 ........
    0xc0 00 00 00 00 00 00 00 00 ........
    0xc8 00 00 00 00 00 00 00 00 ........
    0xd0 00 00 00 00 00 00 00 00 ........
    0xd8 00 00 00 00 00 00 00 00 ........
    0xe0 00 00 00 00 00 00 00 00 ........
    0xe8 00 00 00 00 00 00 00 00 ........
    0xf0 00 00 00 00 00 00 00 00 ........
    0xf8 00 00 00 00 00 00 00    .......        <----- There is one byte Missing
    0>    

    Is there any bugfix to make this dump working correct?

    Has anybody else encountered this bug already?

    How does the Interface to the sdcc Debugger treat that bug?

    Thanks a lot in advance for your comments.

    lg from Vienna,
    Thomas

     
    • Borut Ražem
      Borut Ražem
      2007-12-01

      This is a ucsim bug. Please submit the bug report at http://sourceforge.net/tracker/index.php. It will be fixed in the tomorrow's snapshot build.

      Borut

       
    • Borut Ražem
      Borut Ražem
      2007-12-01

      The correct sdcc bug tacker URL is http://sourceforge.net/tracker/?group_id=599&atid=100599 ;-)

      Borut

       
      • threinbacher
        threinbacher
        2007-12-01

        thx

        U guy's rock!

        Thomas