Category : Assembly Language Source Code
Archive   : RHSTDLIB.ZIP
Filename : CTYPES.ASM

 
Output of file : CTYPES.ASM contained in archive : RHSTDLIB.ZIP
stdlib segment para public 'slcode'
assume cs:stdlib
;
; IsAlNum- Checks al to see if it is alphanumeric.
;
public sl_IsAlNum
sl_IsAlNum proc far
cmp al, '0'
jb notan
cmp al, '9'
jbe isan
cmp al, 'A'
jb notan
cmp al, 'Z'
jbe isan
cmp al, 'a'
jb notan
cmp al, 'z'
jbe isan
notan: cmp al, 'a' ;Clears zero flag
ret
isan: cmp al, al ;Sets zero flag
ret
sl_IsAlNum endp
;
;
; IsxDigit- Checks al to see if it is a hex digit.
;
public sl_IsxDigit
sl_IsxDigit proc far
cmp al, '0'
jb notah
cmp al, '9'
jbe isah
cmp al, 'A'
jb notah
cmp al, 'F'
jbe isah
cmp al, 'a'
jb notah
cmp al, 'f'
jbe isah
notah: cmp al, 'a' ;Clears zero flag
ret
isah: cmp al, al ;Sets zero flag
ret
sl_IsxDigit endp
;
;
stdlib ends
end


  3 Responses to “Category : Assembly Language Source Code
Archive   : RHSTDLIB.ZIP
Filename : CTYPES.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/