NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: Mark Hinchcliffe on September 26, 2005, 09:21:34 PM

Title: Hex Data
Post by: Mark Hinchcliffe on September 26, 2005, 09:21:34 PM
I'd be very grateful if someone could tell me why, in the following code snippet, L1 is OK but L2 throws an error "error: symbol AFh undefined"

segment .data

L1 db 9Fh
L2 db AFh
Title: Re: Hex Data
Post by: Frank Kotler on September 27, 2005, 05:03:47 AM
A symbol name may not begin with a decimal digit. A number *must* begin with a decimal digit.

L2 db 0AFh

... not a problem if you use 0xAF instead of the "h" notation.

Best,
Frank
Title: Re: Hex Data
Post by: nobody on October 05, 2005, 07:03:56 PM
Belated thanks, Frank

..... that solves my problem