GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #881

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: PredatorZeta
Subject: Interrupts (was: system.pas)


Peter Gerwinski <peter@agnes.dida.physik.uni-essen.de> wrote:
> According to Frank Heckenbach:
> > 
> > I declared all eax, ebx, ecx, edx, esi and edi as clobbered. Do I need
more?
> > (ebp? What about segment registers, anyway?)
> 
> I think if you include `ebp' you are safe.  However you should better
> look up the register usage from a suitable book whenever you invoke a
> certain interrupt.  This improves performance.

TAKE CARE!!! If you don't use -fomit-frame-pointer your code DON'T 
WORK!!! This because EBP is always used as stack pointer, also if you
declare this as clobbered: then if you modify EBP your local variable
offsets
is WrOnG!! 

Btw ES, DS, GS, FS, SS cannot be restored by the compiler. You must do
this
from yourself.....

Cya
PrZ.

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).