home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
clarion
/
syslem.zip
/
DEMO1.CLA
next >
Wrap
Text File
|
1993-07-16
|
6KB
|
187 lines
DEMO1 PROGRAM
SCREEN SCREEN WINDOW(25,80),AT(1,1),HUE(14,1)
ROW(22,18) PAINT(1,48),HUE(8,0),TRN
ROW(5,66) PAINT(1,1),HUE(8,0)
ROW(6,66) PAINT(17,1),HUE(8,0),TRN
ROW(21,36) PAINT(1,4),HUE(0,7)
ROW(23,18) PAINT(1,49),HUE(8,0),TRN
ROW(1,1) REPEAT(4);STRING('▒{80}'),HUE(7,0) .
ROW(5,1) STRING('▒{15}<0{50}>▒{15}'),HUE(7,0)
ROW(6,1) REPEAT(17);STRING('▒{15}<0{51}>▒{14}'),HUE(7,0) .
ROW(23,1) STRING('▒{17}<0{49}>▒{14}'),HUE(7,0)
ROW(24,1) REPEAT(2);STRING('▒{80}'),HUE(7,0) .
ROW(5,16) STRING('╔═{48}╗'),HUE(14,1)
ROW(6,16) REPEAT(2),EVERY(12);STRING('║<0{48}>║'),HUE(14,1) .
ROW(7,16) STRING('╠═{48}╣'),HUE(14,1)
ROW(8,16) REPEAT(9);STRING('║<0{48}>║'),HUE(14,1) .
ROW(19,16) STRING('║<0{48}>║'),HUE(14,1)
ROW(21,65) STRING('║'),HUE(14,1)
ROW(22,18) STRING('═{47}╝'),HUE(14,1)
ROW(17,16) STRING('╟─{48}╢')
ROW(20,16) STRING('╠═{48}╣')
ROW(21,16) STRING('║')
ROW(22,16) STRING('╚═')
ROW(6,27) STRING('System Info Demo For Clarion'),HUE(14,1)
ROW(8,27) STRING('Model {8}'),HUE(14,1)
COL(42) STRING(':'),HUE(14,1)
ROW(9,27) STRING('CPU {10}'),HUE(14,1)
COL(42) STRING(':'),HUE(14,1)
ROW(10,27) STRING('Total RAM '),HUE(14,1)
COL(42) STRING(':'),HUE(14,1)
ROW(11,27) STRING('Available RAM'),HUE(14,1)
COL(42) STRING(':'),HUE(14,1)
ROW(12,27) STRING('BIOS Date {5}'),HUE(14,1)
COL(42) STRING(':'),HUE(14,1)
ROW(13,27) STRING('DOS Version '),HUE(14,1)
COL(42) STRING(':'),HUE(14,1)
ROW(14,27) STRING('Display Type'),HUE(14,1)
COL(42) STRING(':'),HUE(14,1)
ROW(15,27) STRING('Serial Ports '),HUE(14,1)
COL(42) STRING(':'),HUE(14,1)
ROW(16,27) STRING('Parallel Ports : '),HUE(14,1)
COL(45) STRING(' '),HUE(14,1)
ROW(18,27) STRING('Drive A '),HUE(14,1)
COL(42) STRING(':'),HUE(14,1)
ROW(19,27) STRING('Drive B'),HUE(14,1)
COL(42) STRING(':'),HUE(14,1)
ROW(21,40) STRING(' - Quit'),HUE(14,1)
MODEL ROW(8,44) STRING(15),HUE(15,1)
GETCPU ROW(9,44) STRING(13),HUE(15,1)
RAM_TOT ROW(10,44) STRING(@P<<#KP),HUE(15,1)
RAM_AVAIL ROW(11,44) STRING(@P<<#KP),HUE(15,1)
BIOSDATE ROW(12,44) STRING(@P##/##/##P),HUE(15,1)
DOSVER ROW(13,44) STRING(@P#.##P),HUE(15,1)
CARDTYPE ROW(14,44) STRING(7),HUE(15,1)
SERIAL ROW(15,44) STRING(@N1),HUE(15,1)
PARALLEL ROW(16,44) STRING(@N1),HUE(15,1)
DRIVE_A ROW(18,44) STRING(13),HUE(15,1)
DRIVE_B ROW(19,44) STRING(13),HUE(15,1)
ROW(21,35) PAUSE('ENTER'),HUE(0,7)
.
MAP
INCLUDE('SYSLEM.CPY')
.
TEMP LONG
CODE
OPEN(SCREEN)
IF MODEL() = 255
MODEL = 'PC/XT'
ELSIF MODEL() = 254
MODEL = 'PC/XT'
ELSIF MODEL() = 253
MODEL = 'PCjr'
ELSIF MODEL() = 252
IF SUBMODEL() = 02
MODEL = 'XT/286'
ELSIF SUBMODEL() = 04
MODEL = 'PS/2 Model 50'
ELSIF SUBMODEL() = 05
MODEL = 'PS/2 Model 60'
ELSE
MODEL = 'PC/AT'
.
ELSIF MODEL() = 251
MODEL = 'PC/XT'
ELSIF MODEL() = 250
MODEL = 'PS/2 Model 30'
ELSIF MODEL() = 249
MODEL = 'Convertible'
ELSIF MODEL() = 248
MODEL = 'PS/2 Model 80'
ELSIF MODEL() = 45
MODEL = 'Compaq PC'
ELSIF MODEL() = 154
MODEL = 'Compaq Plus'
ELSE
MODEL = 'Unknown'
.
IF GETCPU() = 1
GETCPU = 'NEC V-20'
ELSIF GETCPU() = 2
GETCPU = '8088'
ELSIF GETCPU() = 3
GETCPU = '80186'
ELSIF GETCPU() = 4
GETCPU = '80286'
ELSIF GETCPU() = 5
GETCPU = '80386'
ELSIF GETCPU() = 6
GETCPU = '80486'
ELSE
GETCPU = 'Unknown'
.
RAM_TOT = GETRAM()
TEMP = MEMORY(0)
TEMP = TEMP / 1024
RAM_AVAIL = TEMP
BIOSDATE = BIOSDATE()
DOSVER = DOSVER()
IF CARDTYPE() = 1
CARDTYPE = 'MDA'
ELSIF CARDTYPE() = 2
CARDTYPE = 'HGA'
ELSIF CARDTYPE() = 3
CARDTYPE = 'CGA'
ELSIF CARDTYPE() = 4
CARDTYPE = 'EGA'
ELSIF CARDTYPE() = 5
CARDTYPE = 'MCGA'
ELSIF CARDTYPE() = 6
CARDTYPE = 'VGA'
ELSE
CARDTYPE = 'Unknown'
.
SERIAL = GETCOM()
PARALLEL = GETLPT()
IF DRIVETYPE(0) = 0 !Drive A
DRIVE_A = 'Not Installed'
ELSIF DRIVETYPE(0) = 1
DRIVE_A = '5¼ 360K DD'
ELSIF DRIVETYPE(0) = 2
DRIVE_A = '5¼ 1.2M HD'
ELSIF DRIVETYPE(0) = 3
DRIVE_A = '3½ 720K DD'
ELSIF DRIVETYPE(0) = 4
DRIVE_A = '3½ 1.44M HD'
ELSIF DRIVETYPE(0) = 5
DRIVE_A = '3½ 2.88M EHD'
ELSE
DRIVE_A = 'Unknown'
.
IF DRIVETYPE(1) = 0 !Drive B
DRIVE_B = 'Not Installed'
ELSIF DRIVETYPE(1) = 1
DRIVE_B = '5¼ 360K DD'
ELSIF DRIVETYPE(1) = 2
DRIVE_B = '5¼ 1.2M HD'
ELSIF DRIVETYPE(1) = 3
DRIVE_B = '3½ 720K DD'
ELSIF DRIVETYPE(1) = 4
DRIVE_B = '3½ 1.44M HD'
ELSIF DRIVETYPE(1) = 5
DRIVE_B = '3½ 2.88M EHD'
ELSE
DRIVE_B = 'Unknown'
.
ACCEPT
CLOSE(SCREEN)