I was looking some codes and I saw a thing like this:



error db 13, 10,"Error on initialization.", 13, 10, 0
error_init equ $-error


What does this "$-..." mean? Thanks
Posted on 2004-09-26 13:21:49 by Marginais
the "current" location, so $-error would return the length of error
Posted on 2004-09-26 13:31:38 by Drocon
Funny that MS is using extensively the symbol $ :)
Posted on 2004-09-26 14:30:13 by Vortex
Many assembler's "current address symbol" is the "$" , not microsoft MASM only.

$ - Target = Current Address - Target
Posted on 2004-09-28 04:59:28 by Kestrel