home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
CPM
/
ZCPR33
/
Z3-33
/
Z33RCP02.LBR
/
RCPTST.LZB
/
RCPTST.LIB
Wrap
Text File
|
2000-06-30
|
1KB
|
57 lines
page
; RCP-TST.Z80 'TST' Command
;=============================================================================
;
; E R R O R T E S T C O M M A N D
;
;=============================================================================
; Command: TST
; Function: To set the message buffer program error flag based on
; error count reported by M80 or L80
; Syntax: TST PN where PN is (at least) the first letter of M80 or L80
testerr:
; Check for name of program to test
ld a,(fcb1+1) ; Get first character in program name
if testm80
ld hl,m80f ; Preset for m80 test counts
ld de,m80w
cp 'M'
jr z,testcount
endif ; Testm80
if testf80
ld hl,f80f
ld de,f80w
cp 'F'
jr z,testcount
endif ; Testf80
; If no match, give error message
call print
db 'bad nam','e'+80h
testcount:
ld a,(hl) ; Test first error count word
inc hl
or (hl)
ex de,hl ; Test second word
or (hl)
inc hl
or (hl)
ld hl,z3msg+6 ; Point to program error flag
ld (hl),0 ; Clear it
ret z ; If counts were zero, we are done
ld (hl),0ffh ; Else set the error flag
ret
; End RCP-TST.Z80