flat assembler
Message board for the users of flat assembler.

Index > Main > suspicious "unexpected end of file" on macro

Author
Thread Post new topic Reply to topic
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 19 Feb 2004, 04:28
Code:
macro strlen val {
    virtual at 0
        db val
        strlenr = $
    end virtual
}
macro someshit [val] {
    virtual at 0
    forward
        strlen val
        db strlenr
        db val
    common
        load len from 0
        display len+30h
    end virtual
}

someshit "abc","def","bbb","zzz","yyy"    


This code gives "unexpected end of file" error. Removing the "common" block (and the 2 lines inside it) is what is causing error. No idea why :/

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



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 19 Feb 2004, 07:49
Code:
include '%finc%/macro/display.inc'

macro someshit [val] {
    common       ; Here is the problem.
    virtual at 0
    forward
        strlen val
        db strlenr
        db val
    common
        load len from 0
        display len+30h
    end virtual
}
    
Post 19 Feb 2004, 07:49
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 19 Feb 2004, 14:23
Blagodaru Smile

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 19 Feb 2004, 14:23
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.