#1385 PIC16: rom table lookup not correct when ptr is in struct

open
nobody
PIC16
5
2013-07-16
2007-10-12
Anonymous
No

Incorrect asm is generated when referencing rom (code space) table using a pointer in a union struct.

My email = rick at efn dot org

Discussion

  • Nobody/Anonymous

     
  • Robert Larice

    Robert Larice - 2007-11-12

    Logged In: YES
    user_id=1840151
    Originator: NO

    rick,
    would you please check line 55 of your attachment ?

    shoudn't that be
    pDst.bRam = (unsigned char *) 0x100; /* copy to page 1 */
    instead of
    pSrc.bRam = ...

    Robert Larice

     
  • Maarten Brock

    Maarten Brock - 2010-08-02

    Can you (or anyone else) try again with SDCC 2.9.7 #5903 ? Fixing bug 1962613 might also have solved this one.

     
  • Maarten Brock

    Maarten Brock - 2011-09-18
    • summary: rom table lookup not correct when ptr is in struct --> PIC16: rom table lookup not correct when ptr is in struct
     
  • Philipp Klaus Krause

    • Category: --> PIC16
     

Log in to post a comment.