[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pgubook-readers] Why pushling %ebx
From: |
Pupeno |
Subject: |
[Pgubook-readers] Why pushling %ebx |
Date: |
Sun, 20 Feb 2005 16:48:21 +0000 |
User-agent: |
KMail/1.7.2 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I'm reading "Programming from the ground up" and I've found something I can't
understand.
On page 71 of the letter-sized version of the book: Chapter 6: Reading and
Writting Simple Records, in the reading function (called read_record) it
pushes %ebx without having put anything on it first, in fact, the only
operations before that are for initializing the stack frame, and latter,
before un-initializing the stack frame, it pops %ebx. It seems like %ebx has
a value that needs saving, but this is a function, whatever value that needed
saving that was in a register should have been saved before calling the
function, am I wrong ? Well, then, can anybody explain it ?
Thanks.
- --
Pupeno: address@hidden - http://pupeno.com
Reading Science Fiction ? http://sfreaders.com.ar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFCGL9YfW48a9PWGkURAlMrAJ90+ocQEItxoinlBqNWKA6HmSIbkQCfdYjX
PO23qIazRs9eNrRdhxP+wAY=
=6AUP
-----END PGP SIGNATURE-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pgubook-readers] Why pushling %ebx,
Pupeno <=