home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Unsorted BBS Collection
/
thegreatunsorted.tar
/
thegreatunsorted
/
programming
/
asm_programming
/
STRLTU.RT
< prev
next >
Wrap
Text File
|
1993-01-09
|
652b
|
30 lines
public _strltu
;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
; Make all lower case letters in string uppercase
; In:
; EDX -> string
; Out:
; None
;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
_strltu:
push ax
push edx
strltuml:
mov al,[edx]
or al,al
jz short strltumld
cmp al,'a'
jb short strltumlf0
cmp al,'z'
ja short strltumlf0
sub al,'a'-'A'
mov [edx],al
strltumlf0:
inc edx
jmp strltuml
strltumld:
pop edx
pop ax
ret