#164 gpsim 0.27 16f877 missing general purpose registers

None
closed-fixed
None
5
2014-01-06
2014-01-04
Anonymous
No

The simulation of the 16f877 appears to be missing general purpose registers at 0x120-0x16f and 0x1a0-0x1ef.

Easy enough to fix. In routine void P16F877::create() [file p16f87x.cc] change lines:

add_file_registers(0x110, 0x11f, 0);
add_file_registers(0x190, 0x19f, 0);

to:

add_file_registers(0x110, 0x16f, 0);
add_file_registers(0x190, 0x1ef, 0);

I note that the simulation of the 16f877A (in the same file) has this correct, and according to Microchip these two processors have the same number of general purpose registers.

http://www.microchip.com/wwwproducts/ProductCompare.aspx?product1=PIC16F877A&product2=PIC16F887

Discussion

  • Roy Rankin

    Roy Rankin - 2014-01-06
    • status: open --> closed-fixed
    • assigned_to: Roy Rankin
    • Group: -->
     
  • Roy Rankin

    Roy Rankin - 2014-01-06

    Fixed in svn 2255

     


Anonymous

Cancel  Add attachments





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

Sign up for the SourceForge newsletter:





No, thanks