9.19 Symbol '$' - inserts current address program address

  ----------------------------------------------------------

 

      The symbol '$', in addition to indicating that an Assembler instruction

  follows, in both C-- and Assembler can also indicate the current address

  (offset) of a program to be compiled. But there are not many ways to use it

  in C--.  It cand be used only as an argument for 'GOTO/goto' and the

  Assembler instructions 'DW/DD/JMP'.

 

      This symbol can be found in any place in a numeric expression to be

  calculated, and it can be used in any place together with other numeric

  expressions.

 

      Example of use:

 

  DW #main-$ //write distance from main to current location

  GOTO $+2; //go to an address 2 more than current address