www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/08/15:34:26

Date: Sat, 8 Nov 1997 12:33:06 -0800 (PST)
Message-Id: <199711082033.MAA01413@adit.ap.net>
Mime-Version: 1.0
To: David Shirley <shirleyd AT cs DOT curtin DOT edu DOT au>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Interrupt Vectors (Installing)

At 05:28  11/6/1997 +0800, David Shirley wrote:
>Hello,
>    I am interested in setting up a software interrupt at say 0x61, i
>have read some documentation and i think i am meant to use
>_dpmi_set_protected_mode_interupt_vector(_vector,p_addr)
>Im not quite sure how this actually works, ie which piece of code is
>called when another program calls interupt 0x61? Could someone please
>explain this to me.
I think you will want to hook the real-mode interrupt instead. I believe you
call _go32_dpmi_allocate_real_mode_callback_iret(), and pass what you get to
__dpmi_set_real_mode_interrupt_vector() (it may need some rearranging
first). See FAQ section 18.8 for more.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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