dpmi2raw.ppi 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1993,97 by the Free Pascal development team.
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. procedure Get_RAW_Switch_Address;
  12. begin
  13. asm
  14. movw $0x306,%ax
  15. int $0x31
  16. shll $0x10,%ebx
  17. movw %cx,%bx
  18. movl %ebx,_SWITCHRAW2DPMI
  19. movl %edi,_SWITCHDPMI2RAW
  20. movw %si,_SWITCHSEG
  21. end;
  22. end;
  23. {
  24. $Log$
  25. Revision 1.1 1998-03-25 11:18:42 root
  26. Initial revision
  27. Revision 1.3 1998/01/26 11:57:47 michael
  28. + Added log at the end
  29. Working file: rtl/dos/ppi/dpmi2raw.ppi
  30. description:
  31. ----------------------------
  32. revision 1.2
  33. date: 1997/12/01 12:21:28; author: michael; state: Exp; lines: +14 -0
  34. + added copyright reference in header.
  35. ----------------------------
  36. revision 1.1
  37. date: 1997/11/27 08:33:51; author: michael; state: Exp;
  38. Initial revision
  39. ----------------------------
  40. revision 1.1.1.1
  41. date: 1997/11/27 08:33:51; author: michael; state: Exp; lines: +0 -0
  42. FPC RTL CVS start
  43. =============================================================================
  44. }