Re: A86: Re: sqrtKEY-FORM!! sqrtFORM!


[Prev][Next][Index][Thread]

Re: A86: Re: sqrtKEY-FORM!! sqrtFORM!




The $ represents the program counter at the current location.  So...

Label =$

is the same thing as

Label:

This is really useful for self modifying code, where you don't want to
offset everywhere, but at the instruction:

Label =$+1
 ld hl,$ffff
...
 ld (Label),0


> So that's what that means!  I've oft puzzled over why someone would
> apparently treat a label as an equate in the middle of their program;
> they must've been using TASM.  Does the '$' symbol tell the assembler to
> insert the PC or something?




References: