home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 18 / CD_ASCQ_18_111294_W.iso / dos / prg / pas / gpro105 / gri.pas < prev    next >
Pascal/Delphi Source File  |  1994-10-24  |  2KB  |  95 lines

  1. { GRI.pas :  unité Pascal d'interfaçage entre PASCAL et GRI    }
  2. { Les diverses fonctions et procedures ne font qu'appeler GRI  }
  3. { Pour les valeurs retournées par les fonctions, voir GPRO.DOC }
  4. { (c) 1994 Guillaume PERNOT                                    }
  5.  
  6.  
  7. unit GRI;
  8.  
  9. Interface
  10.  
  11. const StopProcess:word=0;            { Valeurs pour StopChrono }
  12.       ContinueProcess:word=1;
  13.  
  14. function GRI_StartChrono:word;
  15. function GRI_StopChrono(Time:word):word;
  16. procedure GRI_Int3Call;
  17. procedure GRI_PlanteSys;
  18. function GRI_CheckInstall:word;
  19. function GRI_FindDebugger(reaction:word):word;
  20. procedure GRI_StopDebugger;
  21. procedure GRI_NOP;
  22. function GRI_CheckSum:word;
  23.  
  24. Implementation
  25.  
  26. function GRI_StartChrono:word;assembler;
  27. asm
  28.    mov  ax,4400h
  29.    xor  bx,bx
  30.    int  3
  31. end;
  32.  
  33. function GRI_StopChrono(Time:word):word;assembler;
  34. asm
  35.    mov  ax,4403h
  36.    mov  bx,1
  37.    mov  cx,[Time]
  38.    int  3
  39. end;
  40.  
  41. procedure GRI_Int3Call;assembler;
  42. asm
  43.    mov  ah,3eh
  44.    mov  bx,2
  45.    int  3
  46. end;
  47.  
  48. procedure GRI_PlanteSys;assembler;
  49. asm
  50.    mov  ax,4c01h
  51.    mov  bx,3
  52.    int  3
  53. end;
  54.  
  55. function GRI_CheckInstall:word;assembler;
  56. asm
  57.    xor  ax,ax
  58.    mov  bx,4
  59.    int  3
  60. end;
  61.  
  62. function GRI_FindDebugger(reaction:word):word;assembler;
  63. asm
  64.    mov  ax,[reaction]
  65.    mov  bx,5
  66.    int  3
  67.    mov  ax,bx
  68. end;
  69.  
  70. procedure GRI_StopDebugger;assembler;
  71. asm
  72.    mov  bx,6
  73.    int  3
  74. end;
  75.  
  76. procedure GRI_NOP;assembler;
  77. asm
  78.    mov  bx,7
  79.    int  3
  80. end;
  81.  
  82. function GRI_CheckSum;assembler;
  83. asm
  84.    int  60h
  85.    int  0ebh
  86.    int  0ebh
  87.    db   0
  88. end;
  89.  
  90. begin
  91. end.
  92.  
  93.  
  94.  
  95.