1Fh ER$LKUP look up error message
Input B = error number
Output X = address of error message
Description

Given an error code in B, returns the address of the appropriate error message in X.

The returned error message is a leading byte count string. If there is no error message for this error code, the default message "*** ERROR ***" (or "UNKNOWN ERR x" on an LZ) is returned.

ER$LKUP is called by the OPL function ERR$.

Example
        LDAB    ERROR_CODE      ; B = ERROR CODE
        OS      ER$LKUP
        LDAB    0,X             ; GET LENGTH BYTE
        INX                     ; SKIP PAST
        OS      DP$PRNT         ; PRINT THE ERROR MESSAGE
Errors - none -