www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/11/19:14:17

Message-ID: <355785D6.A415919A@performancesw.com>
Date: Mon, 11 May 1998 17:12:22 -0600
From: Fritz Parsons <fritzp AT performancesw DOT com>
Organization: Performance Software Associates
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Interrupts

I am trying to generate an interrupt with the following code:

    incl _RecStat       /* add interrupt to status */
    .byte   0x2e
    pushl   %eax
    xor     %eax,%eax
    mov     %ax,%ds
    movb $0x78,%al  
    call ___djgpp_hw_exception
    popl    %eax
    .byte   0x2e

I used SVASYNC as a guide. My problem is, when I call the djgpp....
routine, the program crashes. The stack is blown, so I can't track 
what went wrong. What am I doing wrong?

Thanks,
Fritz
fritzp AT performancesw DOT com

- Raw text -


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