readnum: improve help text about deprecated $hex

State that the right thing to do is $hex -> 0xhex.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2025-09-03 00:53:16 -07:00
parent 54efdde7b1
commit ebfdbfc355

View file

@ -52,7 +52,8 @@ void warn_dollar_hex(void)
*! warns that the \c{$} prefix for hexadecimal numbers is
*! deprecated, due to the syntactic conflict with \c{$} used
*! as a symbol escape prefix. This syntax may be disabled by
*! default in a future version of NASM.
*! default in a future version of NASM. Replace \c{$} with \c{0x}
*! to ensure compatibility with future versions.
*/
nasm_warn(WARN_NUMBER_DEPRECATED_HEX,
"$ prefix for hexadecimal is deprecated");