/* This C language subroutine returns non-zero if the input is upper case, zero otherwise. The Run Time Library for the C Language. Gordon A. Sterling (617) 461 - 3076 DSP Development Tools Engineering Updated on 5/94 by AS #include
int isupper(int c); */ #include "lib_glob.h" #include "cty_glob.h" .SEGMENT/CODE Code_Space_Name; .FILE RTL_FILENAME; .GLOBAL _isupper; _isupper: R2=90; /*122 = ASC('Z')*/ COMP(R4,R2), R0=dm_1; /*Set return to true*/ IF GT R0=R0-R0; R2=65; /*97 = ASC('A');*/ COMP(R4,R2), FETCH_RETURN IF LT R0=R0-R0; restore_state: RETURN (DB); RESTORE_STACK RESTORE_FRAME .ENDSEG;