#95 attempt write to invalid file register in version 0.24.0

Cesar Rabak

I think this counts as a regression bug. To test you can compile the code available at http://www.micahcarrick.com/v2/content/view/14/4/ using the suggested command line:

Compile: sdcc --debug -mpic14 -p16f627 toggle_led.c
Simulate: gpsim -pp16f627 -s toggle_led.cod toggle_led.asm

I get the same results as reported in: http://www.braindeadprojects.com/blog/rf/pic-simulation-using-gpsim/ (be it in Linux or Windows XP)

The same "solution" also worked in my case, which is downgrade to version 0.22.0.

Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/


  • Robert Pearce

    Robert Pearce - 2010-03-28

    It looks like the shadow copies of some SFRs on 16F627 were implemented oddly in 0.22.0 but the person who fixed this managed to lose some of the aliases. Should be fairly easy to fix, but I wonder how many other devices were affected...

  • Robert Pearce

    Robert Pearce - 2010-03-28

    OK, I've checked in a fix for the 16F62x at SVN r2085
    PCLATH wasn't the only register missing its page 3 alias - INDF and INTCON were too

    I'm not going to close this yet as somebody should have a quick scout through for other devices with similar regressions

  • Robert Pearce

    Robert Pearce - 2010-03-28
    • status: open --> open-accepted


Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks