This is what I have and think it is correct but the result shows up as all spaces... Im lost... Any help would be great. Thanks
TITLE process_strings
.586
.MODEL flat,stdcall
ExitProcess PROTO, ExitCode
WORD
.data
message BYTE "You cant always get what you want",0
result BYTE SIZEOF message DUP(" "),0
.code
public fini
loop4 PROC
;----------Copy the string message to result
mov ebx,0
mov ecx,LENGTHOF message
next_char:
mov al,message[ebx]
cmp al,'a'
jb no_change
cmp al,'z'
ja no_change
and al,0DFh
no_change:
mov result[ebx],al
inc ebx
loop next_char
fini:: push 0
call ExitProcess
loop4 ENDP
END loop4
TITLE process_strings
.586
.MODEL flat,stdcall
ExitProcess PROTO, ExitCode
.data
message BYTE "You cant always get what you want",0
result BYTE SIZEOF message DUP(" "),0
.code
public fini
loop4 PROC
;----------Copy the string message to result
mov ebx,0
mov ecx,LENGTHOF message
next_char:
mov al,message[ebx]
cmp al,'a'
jb no_change
cmp al,'z'
ja no_change
and al,0DFh
no_change:
mov result[ebx],al
inc ebx
loop next_char
fini:: push 0
call ExitProcess
loop4 ENDP
END loop4