home *** CD-ROM | disk | FTP | other *** search
- 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
-
-