What’s the real meaning of $$ in nasm

$$ is the address of the beginning of the current section. It is a relocatable value (not “scalar” – a word you will find in an error message, but not in the Manual). It is an offset, so doesn’t care what’s in a segment register. Documentation: https://www.nasm.us/doc/nasmdoc3.html#section-3.5 example use case for a boot sector: https://www.nasm.us/doc/nasmdo13.html#section-13.1.3 … Read more