.title isalpha Test for alphabetic argument .ident /000004/ ; ;+ ; ; Index Test for alphabetic argument ; ; Usage ; ; isalpha(c); ; int c; ; ; Description ; ; Return non-zero if c is an alphabetic character, 0 otherwise. ; ; Bugs ; ;- ; ; Edit history ; 000001 05-Mar-80 MM Initial edit ; 000002 10-Mar-82 MM Use ctype ; 000003 06-Jun-82 MM Don't strip parity ; 000004 07-Jun-82 MM Redone ; ; The following definitions must match ctype.mac and ctype.h ; U = 0001 ; UPPER case alpha L = 0002 ; lower case alpha D = 0004 ; digit S = 0010 ; whitespace (tab, backspace, lf, etc) P = 0020 ; punctuation C = 0040 ; control X = 0100 ; hex alpha B = 0200 ; blank .psect c$code isalpha:: mov #U+L,r0 ; Get the mask ;04 jmp $$ctype ; Do it ;04 .end