NASM - The Netwide Assembler
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Calendar
Login
Register
NASM - The Netwide Assembler
»
NASM Forum
»
Using NASM
»
Hex Data
« previous
next »
Print
Pages: [
1
]
Author
Topic: Hex Data (Read 11406 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
Logged
Frank Kotler
NASM Developer
Hero Member
Posts: 2667
Country:
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
Logged
nobody
Guest
Re: Hex Data
«
Reply #2 on:
October 05, 2005, 07:03:56 PM »
Belated thanks, Frank
..... that solves my problem
Logged
Print
Pages: [
1
]
« previous
next »
NASM - The Netwide Assembler
»
NASM Forum
»
Using NASM
»
Hex Data