.386
.model flat, stdcall
includelib kernel32.lib
includelib user32.lib
MessageBoxA PROTO ,:DWORD, :DWORD, :DWORD, :DWORD
ExitProcess PROTO ,:DWORD
.data
MsgBoxCaption db "Caption String!",0
MsgBoxText db "strinG STRing STRING strinG",0
table db "abcdefghijklmnopqrstuvwxyz"
d = ‘a’ – ‘A’
.code
Winmain PROC
lea edx, MsgBoxText
cycle:
mov al, [edx]
cmp al,0
jz goout
cmp al, «a»
jng badchar
cmp al, «z»
jge badchar
sub al, N
lea ebx, table
xlat
mov [edx], al
badchar:
add edx, 1
jmp cycle
goout:
push 0
push offset MsgBoxCaption
push offset MsgBoxText
push 0
call MessageBoxA
push 0
call ExitProcess
Winmain endp
end Winmain