#1872 [PIC14E] few banksel in asm code

closed-fixed
5
2013-05-25
2011-11-02
Gál Zsolt
No

SDCC : pic14 3.0.6 #7004 (Nov 2 2011) (Linux)

I complained about the lot of banksel in the code some month ago. I am writing about few banksel now.
Compiling the attached file for 16F1934 and 16F887 show differeces. The 16F887 assembly code is correct, the 16F1934 isn't.
a.) After returning from a call routine should stay a banksel before handling the rx0001 register.
b.) PORTA,TRISA and LATA are in different banks but in the assembly code doesn't exist banksel before handling the rx0001 register.

Discussion

  • Gál Zsolt

    Gál Zsolt - 2011-11-02

    demonstration code

     
  • Raphael Neider

    Raphael Neider - 2011-11-02
    • milestone: --> fixed
    • status: open --> closed-fixed
     
  • Raphael Neider

    Raphael Neider - 2011-11-02

    Due to the incomplete device description in pic14devices.txt, sdcc assumed that all memory was shared across all banks (the only memmap record for the new devices happened to declare the shared memory segment 0x70-0x7f). Fixed in r7006.
    Good bug description!

     
  • Raphael Neider

    Raphael Neider - 2012-02-12
    • assigned_to: nobody --> tecodev
     

Log in to post a comment.