News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

a problem with the MASM keywords

Started by Antonin, November 30, 2007, 03:50:38 AM

Previous topic - Next topic

Antonin

While I'm doing mixed programming of C and ASM, a serious problem occurs.
My asm. program must use some external function name or variable name defined in C file which is identical with the MASM keywords, like "ADD, SUB, GT, ...". What should I do? Help me! thanks a lot!

donkey

Hi,

Not much of a C programmer but as I understand it an underscore is prefixed to all externals in C so ADD would actually be addressed as _ADD which is not a conflict with MASM keywords. I may be corrected on this but that is what I have been lead to believe.

Donkey
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable