Daemon News Ezine BSD News BSD Mall BSD Support Forum BSD Advocacy BSD Updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



| 
| Thus, you could do:
| 
| foo:
|         enter $8, $0
|         mov 12(%ebp), %ebx ; get char * param
|         mov 8(%ebp), %eax ; get int param
|                         ; note that 4(%ebp) is the saved IP, not a param
|         ...
|         leave
|         ret
| 
| > main:
| >       push %eax       ; char *
| >       push %ebx       ; int
| >       call foo
| >       [...]
| 
| -- 
| 
| John Baldwin <jhb@xxxxxxxxxxx> -- http://www.FreeBSD.org/~jhb/
| PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
| "Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


jcm
-- 
o-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-o
| ~~~~~~~~~~~~  Jonathon McKitrick  ~~~~~~~~~~~~~ |
| "I prefer the term 'Artificial Person' myself." |
o-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-o


To Unsubscribe: send mail to majordomo@xxxxxxxxxxx
with "unsubscribe freebsd-chat" in the body of the message