flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > unexpected instruction

Author
Thread Post new topic Reply to topic
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
Code:
macro log format,[values] {
    common
        local .over,.str,.size
        jmp     .over
        .str    db format,0
.over:
        .size   = 8
        if ~ values eq
    reverse
        pushd   arg
        .size   = .size + 4
        end if
    common
        push    OFFSET .str
        call    logwrap
        add     esp,.size
}    


i get "unexpected instruction" on "end if"

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


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica
comrade wrote:
Code:
        .size   = 8
        if ~ values eq
    reverse
        pushd   arg
        .size   = .size + 4
        end if
    common
    

Shouldn't the reverse be on the line above instead?

_________________
... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself.
- Bradley Kuhn
Post 26 Feb 2004, 07:24
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
... or "end if" one line below. You simply have one "if" (in common section) and several "end if" in reverce.
Post 26 Feb 2004, 07:47
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
Thank you. Twisted Evil

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 26 Feb 2004, 13:18
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-2019, Tomasz Grysztar.

Powered by rwasa.