home *** CD-ROM | disk | FTP | other *** search
- ;
- ; Z3LIB Module Name: Z3MSG7
- ; Author: Richard Conn
- ; Z3LIB Version Number: 1.3
- ; Module Version Number: 1.1
- ;
- public qerror
-
- ext getmsg
-
- ;
- ; QERROR returns the ZCPR3 command status message in A and the
- ; Zero Flag Set (Z) if this message indicates that an Error has been
- ; encountered. If such is the case, HL contains the address of the
- ; first character of the error line. The PSW and HL are affected.
- ;
- qerror:
- call getmsg ;get ptr to messages
- inc hl ;offset of 3
- inc hl
- inc hl
- ld a,(hl) ;get command status message
- push af
- inc hl ;pt to error address
- ld a,(hl)
- inc hl
- ld h,(hl)
- ld l,a ;HL contains error address
- pop af
- cp 2 ;set Z flag if error
- ret
-
- end