Author Topic: Hex Data  (Read 11405 times)

Mark Hinchcliffe

  • Guest
Hex Data
« 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

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Hex Data
« Reply #1 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

nobody

  • Guest
Re: Hex Data
« Reply #2 on: October 05, 2005, 07:03:56 PM »
Belated thanks, Frank

..... that solves my problem