flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > macro instructions with general registers

Author
Thread Post new topic Reply to topic
JM1130



Joined: 25 Oct 2011
Posts: 3
JM1130
I am very new to fasm and assembly programming in general and was wondering why i'm given an 'invalid value' error when i try to use a general register next to a macro instruction.
Example:

mov ecx, 10h
if ecx = 10h
...
...
end if


Thanks,
Jake Mayer
Post 25 Oct 2011, 20:41
View user's profile Send private message Reply with quote
addes3



Joined: 09 May 2011
Posts: 29
addes3
Hello.

if ... end if is part of the preprocesser, so it's used for conditional assembly.
If you include "WIN32AX.INC" you can use .if and .endif as well as proc macros.
Post 25 Oct 2011, 21:25
View user's profile Send private message Reply with quote
JM1130



Joined: 25 Oct 2011
Posts: 3
JM1130
Got it working now, thanks for the help.
Post 25 Oct 2011, 21:57
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.