News:

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

Macro problem

Started by donkey, January 23, 2006, 11:21:05 PM

Previous topic - Next topic

donkey

Hi Jeremy,

FYI, AND NOT and OR will cause an error if used in a macro, I was trying to do a few math functions for a project and discovered this.

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

jorgon

Hi Donkey

Thanks for letting me know, I'll look into it.
Author of the "Go" tools (GoAsm, GoLink, GoRC, GoBug)

bushpilot

It has been a long time donkey.  Welcome back.

Greg

donkey

Thanks Greg,

Still away for a bit longer, but I remain very active in programming, just no time for the boards these days life seems to be getting in the way. When I get a chance I will post an expanded version of WinExplorer that features some new test items as well as some useful macros - CoInvoke and CInvoke for automated COM and C Calls. As well as some interesting COM examples inculding IShellFolder, IActiveDesktop and others.

Edgar
"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

jorgon

Edgar

Sorry I couldn't reproduce this problem.  Could you post the macro which gave you trouble?  Thanks.

Jeremy
Author of the "Go" tools (GoAsm, GoLink, GoRC, GoBug)

donkey

Hi Jeremy,

here's is an example that is reproducable here at least (GoAsm.Exe Version 0.55)

TESTMACRO(%a,%b,%c)= mov eax,%a \
and eax,%b \
or eax,%c \
not eax

CODE SECTION
START:
TESTMACRO(1,2,3)


Message:

QuoteError!
Line 14 of assembler source file (testmacro.asm):-
Misplaced comma:-
,2 \
   or eax,3 \
   not eax
"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

jorgon

Thanks, in my tests I was trying to use NOT AND OR as operatives (in arithmetic procedures) rather than as mnemonics!
I'll try again.
Author of the "Go" tools (GoAsm, GoLink, GoRC, GoBug)

jorgon

Edgar

Got to the bottom of this one!
The fix is in GoAsm Version 0.55.03 beta available from here.

Many thanks
Author of the "Go" tools (GoAsm, GoLink, GoRC, GoBug)