MAXFILES.LST 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. Listing:
  2. 1
  3. 2 IMPLEMENTATION MODULE MaxFiles;
  4. 3 (* copyright 1988 John McMonagle *)
  5. 4
  6. 5 FROM EnvironUtils IMPORT
  7. 6 GetPSP;
  8. 7
  9. 8 FROM SYSTEM IMPORT
  10. 9 ADR, SIZE, ADDRESS;
  11. 10
  12. 11 FROM LowLevel IMPORT
  13. 12 Fill, Move,Address8086,AddAddr;
  14. 13
  15. 14 TYPE
  16. 15 hand = ARRAY[ 0 .. 255 ] OF CHAR;
  17. ***** ^ not supported yet
  18. ***** ^ not supported yet
  19. 16
  20. 17 VAR
  21. 18 Handles : hand;
  22. ***** ^ not supported yet
  23. 19
  24. 20
  25. 21 PROCEDURE Max;
  26. 22
  27. 23 VAR
  28. 24 psp : Address8086;
  29. 25 pspNumber : POINTER TO CARDINAL;
  30. ***** ^ not supported yet
  31. 26 pspHandles : POINTER TO ADDRESS;
  32. ***** ^ not supported yet
  33. 27
  34. 28 BEGIN
  35. 29 Fill( ADR( Handles ), SIZE( Handles ), 255 );
  36. ***** ^ not supported yet
  37. ***** ^ not supported yet
  38. ***** ^ not supported yet
  39. ***** ^ not supported yet
  40. ***** ^ not supported yet
  41. ***** ^ not supported yet
  42. 30 psp.off := 0;
  43. ***** ^ not supported yet
  44. ***** ^ not supported yet
  45. 31 psp.seg := GetPSP( );
  46. ***** ^ not supported yet
  47. ***** ^ not supported yet
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. 32 pspNumber := AddAddr(psp.a,50);
  51. ***** ^ not supported yet
  52. ***** ^ not supported yet
  53. ***** ^ not supported yet
  54. ***** ^ not supported yet
  55. ***** ^ not supported yet
  56. 33 pspHandles := AddAddr(psp.a, 52);
  57. ***** ^ not supported yet
  58. ***** ^ not supported yet
  59. ***** ^ not supported yet
  60. ***** ^ not supported yet
  61. ***** ^ not supported yet
  62. 34 Move( pspHandles^, ADR( Handles ), pspNumber^ );
  63. ***** ^ not supported yet
  64. ***** ^ not supported yet
  65. ***** ^ not supported yet
  66. ***** ^ not supported yet
  67. ***** ^ not supported yet
  68. 35 pspNumber^ := 255;
  69. ***** ^ not supported yet
  70. 36 pspHandles^ := ADR( Handles );
  71. ***** ^ not supported yet
  72. ***** ^ not supported yet
  73. ***** ^ not supported yet
  74. 37 END Max;
  75. ***** ^ not supported yet
  76. 38
  77. 39 BEGIN
  78. 40 Max;
  79. ***** ^ not supported yet
  80. 41 END MaxFiles.
  81. ***** ^ not supported yet
  82. 39 errors