Hacker News new | ask | show | jobs
by totallymike 19 days ago
$nn was a common way to write numeric literals (specifically in hexadecimal, if memory serves) in assembly languages, to differentiate from memory addresses or other uses for values
2 comments

$ is still used today for AT&T syntax x86-64 assembly. It just means that a constant follows. If it's in hexadecimal, it will still need the 0x prefix.

I think Turbo Pascal used $ as a prefix for hexadecimal literals.

Ah ok, it does make sense now! Super interesting to read about the devices from back then and the difference from the then-Assembly and the one we use nowadays