new user of sdcc - can't get off the ground..

Mike
2005-02-08
2013-03-12
  • Mike
    Mike
    2005-02-08

    I have the following program:

    #include <stdio.h>
    #include <8051.h>

    sfr at 0xff scratch;

    void main(void) {

        scratch = 0;

        while (1) {
            scratch += 1;
        }
    }

    which I compile with:

    sdcc -mmcs51 --model-large  --debug test.c

    and all is well, but when I attempt to use the debugger I get:

    49$ sdcdb test
    <banners deleted>
    file "test.ihx"
    (sdcdb) break main
    Breakpoint 1 at 0x8: file test.c, line 6.
    (sdcdb) run
    Starting program
    Simulator stopped at Address 0x0010
    F? 0x0010 75 82 00 MOV   DPL,#00
    (sdcdb)

    I downloaded and built from the 2/8 (todays) source.  I get the same result if I download the pre-compiled versions as well.

    I'm just trying to get a test program to compile and simulate.

    Thanks for any advice.