home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
clarion
/
chips.zip
/
CHIPS.COM
/
CHIP_TST.CLA
next >
Wrap
Text File
|
1989-09-28
|
2KB
|
58 lines
!*******************************************************************************
! Program..: CHIP_TST
! Function.: Display the processor/co-processor chip types using the 'CHIPS' LEM
! Version..: 1.0
! Author...: Louis S. Berman
! Date.....: 09-28-89
! Updated..:
!
! Notices..: Copyright 1989 by BrainTree Consulting Ltd.
! .........: All rights reserved.
!*******************************************************************************
CHIP_TST PROGRAM
MAP
MODULE('CHIPS'),BINARY
FUNC(CHIPS),LONG
. .
SCREEN SCREEN WINDOW(25,80),AT(1,1),PRE(SCR),HUE(3,0)
ROW(10,25) STRING('╔═<0{26}>══╗'),HUE(6,0)
ROW(11,25) REPEAT(3);STRING('║<0{29}>║'),HUE(6,0) .
ROW(14,25) STRING('╚═{29}╝'),HUE(6,0)
ROW(10,28) STRING('Chips That Were Detected'),HUE(14,0)
ROW(12,28) STRING('Processor...:')
ROW(13,28) STRING('Co-Processor:')
ROW(15,28) STRING('Press')
COL(34) STRING('any key'),HUE(14,0)
COL(42) STRING('to continue.')
CPU ROW(12,42) STRING(11),HUE(15,0)
MATH_CHIP ROW(13,42) STRING(11),HUE(15,0)
.
CODE
OPEN(SCREEN)
CASE INT(CHIPS()/10)
OF 8; SCR:CPU = '8088/86'
OF 18; SCR:CPU = '80186/88'
OF 28; SCR:CPU = '80286'
OF 38; SCR:CPU = '80386'
OF 20; SCR:CPU = 'NEC V20/V30'
ELSE
SCR:CPU = 'Unknown'
.
CASE CHIPS() % 10
OF 0; SCR:MATH_CHIP = 'None'
OF 1; SCR:MATH_CHIP = '8087'
OF 2; SCR:MATH_CHIP = '80287'
OF 3; SCR:MATH_CHIP = '80387'
ELSE
SCR:MATH_CHIP = 'Unknown'
.
ASK