Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

PIC16F877 mulitple retlw on one line

norbert75
2010-01-31
2013-03-12
  • norbert75
    norbert75
    2010-01-31

    Hello,
    the compile is ok but generate :  "menu.asm:152:Error  syntax error"  152: retlw 0x00 retlw 0x00 retlw 0x00
    it is in a const struc
    struct lst
    { char *nom;
      char function;
    union  { struct menu *Vmenu; char *Pfunstion;};
    };
    struct menu
    { char *nom;
      char nb ;  
    struct lst *choix;
    struct menu *menuPred;
    };

    const struct lst L_Volume= 
    { M_Volume,
      Null,
      0,
    };

    the asm:
    ID_menu_1 code
    _L_Volume
    retlw _M_Volume
    retlw (_M_Volume + 1)
    retlw (_M_Volume + 2)

    retlw 0x00

    retlw 0x00
    retlw 0x00
    retlw 0x00

    retlw 0x00 retlw 0x00 retlw 0x00
    Thank to give a turnaround

    N75