I was looking some codes and I saw a thing like this:
What does this "$-..." mean? Thanks
error db 13, 10,"Error on initialization.", 13, 10, 0
error_init equ $-error
What does this "$-..." mean? Thanks
the "current" location, so $-error would return the length of error
Funny that MS is using extensively the symbol $ :)
Many assembler's "current address symbol" is the "$" , not microsoft MASM only.
$ - Target = Current Address - Target
$ - Target = Current Address - Target