flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > proc doesn't work on linux :|

Author
Thread Post new topic Reply to topic
Thaorius



Joined: 27 Jul 2006
Posts: 42
Thaorius 31 Jul 2006, 19:15
Hi everyone!

Wow, the subject says everything, on win32 platform, the sentences like this work's fine:
Code:
proc something .var
        <--code-->
        ret
endp
    


But on linux i get a fasm error:
Quote:
Thaorius:/home/thaorius/asm# fasm linapi.asm
flat assembler version 1.67.6 (16384 kilobytes memory)
fasmlib/linux/api.inc [10]:
proc sys_exit .code
error: illegal instruction.
Thaorius:/home/thaorius/asm#


Why is that? how do i solve it?

Thanks
Post 31 Jul 2006, 19:15
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
UCM



Joined: 25 Feb 2005
Posts: 285
Location: Canada
UCM 31 Jul 2006, 19:21
It's because 'proc' is not a directive, it is a macro. The reason why it works on the win32 platform is that the macro is included with the win32 headers.
You can include the 'MACROS\PROC.INC' file from the win32 distribution to get the macro.
Post 31 Jul 2006, 19:21
View user's profile Send private message Reply with quote
Thaorius



Joined: 27 Jul 2006
Posts: 42
Thaorius 31 Jul 2006, 19:22
oh, stupid me, thanks for the lightspeed answer.

Bye!
Post 31 Jul 2006, 19:22
View user's profile Send private message Visit poster's website MSN Messenger 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.