home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Stars of Shareware: Programmierung
/
SOURCE.mdf
/
programm
/
msdos
/
asm
/
code32
/
strltu.rt
< prev
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