flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > ' operator doesn't work

Author
Thread Post new topic Reply to topic
xpoza



Joined: 22 Feb 2004
Posts: 2
xpoza 22 Feb 2004, 07:04
Hi
I tried to use the ' operator as appears in the manual

macro label name
{
label name
if ~ used name
display `name # " is defined but not used.",13,10
end if
}

It doesn't work.

Thx xpoza
Post 22 Feb 2004, 07:04
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 22 Feb 2004, 07:07
use [code] directive next time please
i tried what you pasted, and it worked fine, what error do you get?

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 22 Feb 2004, 07:07
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 22 Feb 2004, 08:35
Which version of Fasm are you running?? Maybe your package isn't up-to-date...
Post 22 Feb 2004, 08:35
View user's profile Send private message Visit poster's website Reply with quote
xpoza



Joined: 22 Feb 2004
Posts: 2
xpoza 24 Feb 2004, 11:11
Hi
Sorry - I was misleading
Please refer to the code below

It is compiled o.k

If I will include the last command (check without any parameter) - it will not be compiled.

Can you check it?

Thx Xpoza



macro check alable
{
;
; check if parameres apperas
;
if (alable eq )
display "Missing label argument" , 13,10
else
;
; if lable was found check if defined
;
if defined alable
display "Lable "#`alable # " was found and defined",13,10
else
display "Lable "#`alable # " was found but not defined.",13,10
end if
end if
;
}

;
xcode:
check xcode
check zzzzz
wwww:
; check

;
Post 24 Feb 2004, 11:11
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.