vesadeb.ppi 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. { VESADEB.INC - contains Debuginformations for the VESA.PPU }
  12. writeln('VESA-Signature : ',
  13. VGAInfo.VESASignature[1],VGAInfo.VESASignature[2],VGAInfo.VESASignature[3],
  14. VGAInfo.VESASignature[4],VGAInfo.VESAhiVersion,'.',VGAInfo.VESAloVersion);
  15. writeln('Memory installed : ',VGAInfo.Totalmem * 64,'K');
  16. writeln;
  17. write('Mode $',HexStr(GraphMode,4),' : ');
  18. if (VESAInfo.ModeAttributes and 1)=0 then write('not '); writeln('supported');
  19. writeln('Resolution : ',VESAInfo.XResolution,'x',VESAInfo.YResolution);
  20. write('optional Informations : ');
  21. if (VESAInfo.ModeAttributes and 2)=0 then write('not '); writeln('available');
  22. write('BIOS Output : ');
  23. if (VESAInfo.ModeAttributes and 4)=0 then write('not '); writeln('supported');
  24. write('Mode : ');
  25. if (VESAInfo.ModeAttributes and 8)<>0 then write('colour, ') else write('monochrom, ');
  26. if (VESAInfo.ModeAttributes and $10)<>0 then writeln('graphic') else writeln('text');
  27. if VGAInfo.VESAhiVersion=2 then begin
  28. write('Mode VGA-compatible : ');
  29. if (VESAInfo.ModeAttributes and $20)<>0 then writeln('no') else writeln('yes');
  30. write('Bankswitching : ');
  31. if (VESAInfo.ModeAttributes and $40)<>0 then write('not '); Writeln('supported');
  32. write('linear FrameBuffer : ');
  33. if (VESAInfo.ModeAttributes and $80)=0 then write('not supported') else
  34. begin Writeln('supported');
  35. Writeln('PhysBaseAddress at : 0x',HexStr(VESAInfo.PhysAddress,8));
  36. Writeln('LinearBase at : 0x',Hexstr(Get_linear_addr(VESAInfo.PhysAddress,VGAInfo.TotalMem shl 16),8));
  37. Writeln('OffscreenOffset : 0x',HexStr(VESAInfo.OffScreenPtr,8));
  38. Writeln('OffscreenMem : ',VESAInfo.OffScreenMem,'KB');
  39. end;
  40. end;
  41. writeln;
  42. writeln('BankSwitchRoutine at: ',HexStr(VESAInfo.RealWinFuncPtr,8));
  43. write('WindowA: read: '); if VESAInfo.WinAAttributes and 3<>0 then write('yes')else write('no ');
  44. write(' write: '); if VESAInfo.WinAAttributes and 7<>0 then write('yes')else write('no ');
  45. writeln(' Segment: ',HexStr(VESAInfo.segWinA,4));
  46. write('WindowB: read: '); if VESAInfo.WinBAttributes and 3<>0 then write('yes')else write('no ');
  47. write(' write: '); if VESAInfo.WinBAttributes and 7<>0 then write('yes')else write('no ');
  48. writeln(' Segment: ',HexStr(VESAInfo.segWinB,4));
  49. writeln('Granularity : ',VESAInfo.WinGranularity);
  50. writeln('WinSize : ',VESAInfo.Winsize,' KByte');
  51. writeln('BytesPerLine : ',BytesPerLine);
  52. writeln('BytesPerPixel: ',BytesPerPixel);
  53. readln;
  54. {
  55. $Log$
  56. Revision 1.1 1998-03-25 11:18:42 root
  57. Initial revision
  58. Revision 1.3 1998/01/26 11:58:49 michael
  59. + Added log at the end
  60. Working file: rtl/dos/ppi/vesadeb.ppi
  61. description:
  62. ----------------------------
  63. revision 1.2
  64. date: 1997/12/01 12:21:35; author: michael; state: Exp; lines: +14 -0
  65. + added copyright reference in header.
  66. ----------------------------
  67. revision 1.1
  68. date: 1997/11/27 08:33:52; author: michael; state: Exp;
  69. Initial revision
  70. ----------------------------
  71. revision 1.1.1.1
  72. date: 1997/11/27 08:33:52; author: michael; state: Exp; lines: +0 -0
  73. FPC RTL CVS start
  74. =============================================================================
  75. }