2 ; Ullrich von Bassewitz, 17.05.2000
4 ; char* __fastcall__ strerror (int errcode);
5 ; /* Map an error number to an error message */
14 cpx #$00 ; High byte must be zero
15 bne @L1 ; Jump if invalid error
16 cmp #EMAX ; Valid error code (map EUNKNOWN to 0)?
18 @L1: lda #$00 ; "Unknown error"
22 ; Load the pointer to the error message and return