home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!wtrlnd!contrast!postmaster
- From: berend@contrast.wlink.nl (Berend de Boer)
- Newsgroups: comp.lang.pascal
- Subject: Interrupt bug(?) in protected mode
- Message-ID: <727571597.AA01164@contrast.wlink.nl>
- Date: Wed, 20 Jan 1993 11:03:56
- Sender: postmaster@contrast.wlink.nl
- Lines: 39
-
- Hello All!
-
- The following program, compiled under protected mode, does return the
- correct result. The int 15h should return a dword on the stack. It
- doesn't (it returns nothing) so I get a GP fault. It compiles fine under
- real mode.
-
- You have to run under DesqView (I have 2.42). This call returns the
- currents window handle as a dword on the stack.
-
- ========cut here==========================
- program Test;
-
- function dv_win_me : longint; assembler;
- asm
- mov bx,0001h
- mov ah,12h
- int 15h
- pop ax
- pop dx
- end;
-
- begin
- writeln(dv_win_me);
- end.
- ========cut here==========================
-
- Not all interrupts seem to be supported by the Borland Extender. I tried
- to use the DPMI service Simulate Real Interrupt without succes. I
- probably did something wrong, else it should have worked. Can anyone
- help me?
-
-
- Greetings,
-
- Berend. (-:
- fido: 2:281/527.23
- email: berend@contrast.wlink.nl
-
-