home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
simtel
/
sigm
/
vols200
/
vol276
/
zcpr3cmd.lbr
/
HELP.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1986-06-11
|
1KB
|
58 lines
;command: HELP
;Written by Richard Conn, modified by Bob Logan
;
;prints a list of commands available to zcpr3
HELP EQU $
.phase Z3CMD
H_E:
IF ROMVERS ;for testing set false & load rom contents
;into ram at appropriate address (works fine)
SWRMON ;macro for turning on rom card
ENDIF
LD HL,CMDTBL+1
LD B,NCHARS ;number of chars in a command
LSTCMD:
LD E,10 ;number of commands per line
CALL CRLF3
NOCR:
PUSH BC
HLOOP:
LD A,(HL)
OR A
JR Z,FINIS ;look for end of table, 0 if finished
CALL LCOUT
INC HL
DJNZ HLOOP
CALL PRINT3
DB ' ',' '+80H ;2 spaces
POP BC
INC HL ;skip length of routine
INC HL
INC HL ;skip execute address of routine
INC HL
INC HL ;skip start address of routine
INC HL
DEC E
LD A,E
CP 0
JR NZ,NOCR
JR LSTCMD
FINIS:
POP BC
IF ROMVERS
SWRMOFF ;macro for turning off rom card
ENDIF
XOR A ;set no error for ZCPR3
RET
H_L EQU $-H_E
.dephase