home *** CD-ROM | disk | FTP | other *** search
- {CMOSDEMO.PAS}
- {
- Description: Program to demonstrate the CMOSStuf unit.
-
- Author: Don Taylor
- Date: 6/11/88
- Last revised: 6/11/88 23:20
- Application: IBM PC/AT and compatible; Turbo Pascal 4.0
- }
-
-
- PROGRAM CMOSDemo;
-
- USES
- Crt, CMOSStuf;
-
- VAR
- CMOSRec : CMOSMemRec;
-
- BEGIN { CMOSDemo }
- ClrScr;
- GetCMOSMem(CMOSRec);
- IF CMOSError = 0
- THEN BEGIN
- WRITELN('System memory configuration ---------------------');
- WRITELN;
- WRITELN(' Amount of base memory installed is ',
- CMOSRec.BaseMemory:3, 'K.');
- WRITELN(' Amount of extended memory installed is ',
- CMOSRec.ExtendedMemory1:3, 'K.')
- END
- ELSE BEGIN
- WRITELN('This machine is not an IBM PC/AT compatible!')
- END
- END. { CMOSDemo }
-