This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with PUBLIC declaration of REGBANK in C166 Assembler

C166 Assembler v4.20 doesn't accept following
RB REGBANK R0-R15
PUBLIC RB

It said : Error A39: Illegal PUBLIC/GLOBAL SYMBOL.

Why it happend, the same is written in A166 User's guide p.74

Parents
  • I created a section in IDATA class, located variables there with name of register bank for interrupt
    ?ID?INTERRUPTS SECTION DATA WORD 'IDATA'
    REGISTER_BANK DSW 16
    ?ID?INTERRUPTS ENDS

    ?PR?INTERRUPTS SECTION CODE WORD 'NCODE'
    INT_PROC PROC INTERRUPT = int_no
    scxt CP,#REGISTER_BANK
    ....
    ....
    pop CP
    reti
    INT_PROC ENDP

    but assembler issued a warning A77: MISSING DPP information in line scxt CP,#REGISTER_BANK

    why? ,#REGISTER_BANK is immediate value

Reply
  • I created a section in IDATA class, located variables there with name of register bank for interrupt
    ?ID?INTERRUPTS SECTION DATA WORD 'IDATA'
    REGISTER_BANK DSW 16
    ?ID?INTERRUPTS ENDS

    ?PR?INTERRUPTS SECTION CODE WORD 'NCODE'
    INT_PROC PROC INTERRUPT = int_no
    scxt CP,#REGISTER_BANK
    ....
    ....
    pop CP
    reti
    INT_PROC ENDP

    but assembler issued a warning A77: MISSING DPP information in line scxt CP,#REGISTER_BANK

    why? ,#REGISTER_BANK is immediate value

Children
No data