NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: Borneq on August 19, 2010, 10:06:46 AM

Title: Format identifiers
Post by: Borneq on August 19, 2010, 10:06:46 AM
How long can be identifiers? What chars can cantain?
How long and contain chars can be in DLL function?
Title: Re: Format identifiers
Post by: Frank Kotler on August 19, 2010, 03:41:42 PM
As it says in the friendly manual...

Quote
Valid characters in labels are letters, numbers, _, $, #, @, ~, ., and ?. The only characters which may be used as the first character of an identifier are letters, . (with special meaning: see section 3.9), _ and ?. An identifier may also be prefixed with a $ to indicate that it is intended to be read as an identifier and not a reserved word; thus, if some other module you are linking with defines a symbol called eax, you can refer to $eax in NASM code to distinguish the symbol from the register. Maximum length of an identifier is 4095 characters.

I couldn't tell ya about dll function names. Ask MicroSoft. I Imagine it's similar...

Best,
Frank