Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 2008 14:18:48 -0200
From:      "pablo caballero" <pdcvgmh@gmail.com>
To:        Questions@freebsd.org
Subject:   Developer's Handbook doubt
Message-ID:  <b6db25ac0812100818w7ab98256qa5cc4054232e074d@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi comunity.

I'm a developer new in the FreeBSD world and I'm reading the handbook. I
have a doubt regarding the following code example (page 103):

open:
push dword mode
push dword flags
push dword path
mov eax, 5
push eax ; Or any other dword
int 80h
add esp, byte 16

Why is required the "push eax;" sentence? (I guess a basic assembler concept
unknown to me)

Thank you very much

Regards

Pablo Caballero



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b6db25ac0812100818w7ab98256qa5cc4054232e074d>