getrunmd.tex 695 B

123456789101112131415161718192021222324252627282930
  1. \begin{FPCList}
  2. \item[Example]
  3. \begin{verbatim}
  4. Program getrunmd;
  5. uses go32;
  6. begin
  7. {
  8. depending on the detected environment,
  9. we simply write another message
  10. }
  11. case (get_run_mode) of
  12. rm_unknown :
  13. Writeln('Unknown environment found');
  14. rm_raw :
  15. Writeln('You are currently running in raw mode',
  16. ' (without HIMEM)');
  17. rm_xms :
  18. Writeln('You are currently using HIMEM.SYS only');
  19. rm_vcpi :
  20. Writeln('VCPI server detected.',
  21. ' You''re using HIMEM and EMM386');
  22. rm_dpmi :
  23. Writeln('DPMI detected.',
  24. ' You''re using a DPMI host like ',
  25. 'a windows DOS box or CWSDPMI');
  26. end;
  27. end.\end{verbatim}
  28. \end{FPCList}