flat assembler
Message board for the users of flat assembler.

Index > Linux > interrupts

Author
Thread Post new topic Reply to topic
phenix



Joined: 08 Feb 2009
Posts: 9
phenix 09 Feb 2009, 15:47
I hope this is in the correct place. There is no search for me to tell if this question
has been asked.
We used to use "INT" in MASM32 coding and then it went the Windows APIs.
Can you tell me if the "INT"s used in MASM32 are similair or the same in "FASM"?
Are they documented somewhere on this site?
I'm still learning about this site.
My previous question was about a flat assembler and I think it has been answered.
Thanks for any direction.
Post 09 Feb 2009, 15:47
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20335
Location: In your JS exploiting you and your system
revolution 09 Feb 2009, 16:06
INTs are for the OS to interpret not the assembler. You can still use all the INTs in fasm that you used in MASM. But be aware that Win32 programming uses a DLL paradigm and does not support INT for user mode programs. That is why INTs are not used with Windows programming. Not because the assembler does/doesn't support it. You can still put in INTs if you like but in Windows OS you will likely get a GP fault.

However you are posting in the Linux forum so does that mean you are writing Linux program? Linux uses INT 0x80 for the API. See the fasm examples of Linux programming in the download.
Post 09 Feb 2009, 16:06
View user's profile Send private message Visit poster's website Reply with quote
phenix



Joined: 08 Feb 2009
Posts: 9
phenix 09 Feb 2009, 17:11
Thanks for the reply.
Yes I am writing in Linux(FASM).
I'll check out the examples.
Post 09 Feb 2009, 17: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.