home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 January
/
Chip_1997-01_cd.bin
/
ms95
/
disk23
/
dir05
/
f008910.res
< prev
next >
Wrap
Text File
|
1996-04-02
|
955b
|
33 lines
; branch.ucm
KEY 'NOECHO' ; Disable messages
MSG 'st ' ; Clear Status field
MSG 'cfBranch.ucm' ; Display UCM name in Command field
MSG 'er ' ; Clear Error field
START:
MSG 'prEnter some characters, Reset to exit'
GET K,KEYIN,R,EXITUC ; If key-in, jump to KEYIN
; Else if Reset, jump to EXITUC
GO START ; Else return to START
KEYIN:
MSG 'er ' ; Clear fields
MSG 'pr '
MSG 'ms '
TST K0 GT 20, LONG ; If input > 20 chars, jump to LONG
SET C0='stYou keyed in: '+KEY ; Build message
MSG C0 ; that echoes your input
GO START ; Jump to START
LONG:
MSG 'erInput > 20 characters, please re-enter'
GO START ; Return to START
EXITUC:
MSG 'er ' ; Clear Error field
MSG 'ms ' ; Clear Message field
MSG 'cf ' ; Clear Command field
MSG 'pr ' ; Clear Prompt field
MSG 'stBranch.ucm exited' ; Display exit status
KEY 'ECHO' ; Enable messages
END