flat assembler
Message board for the users of flat assembler.

Index > Linux > int 0x80 and hello world ...

Author
Thread Post new topic Reply to topic
james



Joined: 07 Sep 2005
Posts: 45
Location: Australia
james 02 Oct 2005, 03:57
In the FASM hello world example 'hello.asm'
output is written out using int 0x80.

Im curious why the example does this
Code:
mov eax, 1
xor ebx, ebx
int 0x80
    


Is it necessary to write null out ?

Rgs, James.
Post 02 Oct 2005, 03:57
View user's profile Send private message MSN Messenger Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 02 Oct 2005, 04:10
that's the exit system call.

eax = 1 (sys_exit)
ebx = return value (0 = successful, any other represents an error)
Post 02 Oct 2005, 04:10
View user's profile Send private message Visit poster's website Reply with quote
james



Joined: 07 Sep 2005
Posts: 45
Location: Australia
james 02 Oct 2005, 05:20
oh, thanks. I was looking for that as well.
Post 02 Oct 2005, 05:20
View user's profile Send private message MSN Messenger Reply with quote
rob.rice



Joined: 20 Dec 2003
Posts: 54
rob.rice 06 Nov 2005, 21:02
for more info on int 0x80 goto
http://linuxassembly.org
there are links to web pages on the subjict
Post 06 Nov 2005, 21:02
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.