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
  • Registerbanks are always PUBLIC. Therefore it is enough to write in another assembler module where you want to use the registerbank, again the definition of the registerbank.

    RB REGBANK R0-R15

    Really the linker maps all registerbanks with the same name to the same memory, therefore there is no need to make this public.

Reply
  • Registerbanks are always PUBLIC. Therefore it is enough to write in another assembler module where you want to use the registerbank, again the definition of the registerbank.

    RB REGBANK R0-R15

    Really the linker maps all registerbanks with the same name to the same memory, therefore there is no need to make this public.

Children