delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/01/20/10:48:24

From: "Anthony.Appleyard" <MCLSSAA2 AT fs2 DOT mt DOT umist DOT ac DOT uk>
Organization: Materials Science Centre
To: djgpp-workers AT delorie DOT com
Date: Tue, 20 Jan 1998 15:24:41 GMT
Subject: Re: MCLSSAA2 : hooking interrupt 9
Reply-to: Anthony DOT Appleyard AT umist DOT ac DOT uk
Message-ID: <7B1E493424@fs2.mt.umist.ac.uk>

> Anything which passes arguments on the stack, or uses automatic arrays
> will potentially not work.  GCC assumes that SS = DS, so that you can 
> reference addresses interchangably with [EBX] or [EBP].  Simple functions
> don't trip over this, complicated ones will.

  Then should I insert the two instructions

    mov %ss,%ax
    mov %ax,%ds

 next before this instruction?
    call   *%ebx			/* call the user function */

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019