home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8379 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.2 KB

  1. Path: sparky!uunet!mcsun!sun4nl!wtrlnd!contrast!postmaster
  2. From: berend@contrast.wlink.nl (Berend de Boer)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Interrupt bug(?) in protected mode
  5. Message-ID: <727571597.AA01164@contrast.wlink.nl>
  6. Date: Wed, 20 Jan 1993 11:03:56
  7. Sender: postmaster@contrast.wlink.nl
  8. Lines: 39
  9.  
  10. Hello All!
  11.  
  12. The following program, compiled under protected mode, does return the
  13. correct result. The int 15h should return a dword on the stack. It
  14. doesn't (it returns nothing) so I get a GP fault. It compiles fine under
  15. real mode.
  16.  
  17. You have to run under DesqView (I have 2.42). This call returns the
  18. currents window handle as a dword on the stack.
  19.  
  20. ========cut here==========================
  21. program Test;
  22.  
  23. function  dv_win_me : longint;  assembler;
  24. asm
  25.   mov    bx,0001h
  26.   mov    ah,12h
  27.   int    15h
  28.   pop    ax
  29.   pop    dx
  30. end;
  31.  
  32. begin
  33.   writeln(dv_win_me);
  34. end.
  35. ========cut here==========================
  36.  
  37. Not all interrupts seem to be supported by the Borland Extender. I tried
  38. to use the DPMI service Simulate Real Interrupt without succes. I
  39. probably did something wrong, else it should have worked. Can anyone
  40. help me?
  41.  
  42.  
  43. Greetings,
  44.  
  45. Berend. (-:
  46. fido: 2:281/527.23
  47. email: berend@contrast.wlink.nl
  48.  
  49.