.386
.model flat,stdcall
option casemap:none
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
Maopao proto,:dword,:dword
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
.data?
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
.data
str1 byte '85746321',0
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
.code
Maopao proc lp_str,len_str
pushad
mov ecx,len_str
L1: push ecx
mov esi,lp_str
L2: mov al,[esi+1]
cmp al,0
je L4
cmp al,[esi]
ja L3
or al,30h
mov bl,[esi]
mov [esi],al
or bl,30h
mov [esi+1],bl
L3: inc esi
loop L2
L4: pop ecx
loop L1
popad
ret
Maopao endp
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
start:
invoke MessageBox,NULL,addr str1,addr str1,1
mov eax,offset str1
mov ebx,sizeof str1
invoke Maopao,eax,ebx
invoke MessageBox,NULL,addr str1,addr str1,1
invoke ExitProcess,NULL
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
end start
.model flat,stdcall
option casemap:none
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
Maopao proto,:dword,:dword
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
.data?
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
.data
str1 byte '85746321',0
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
.code
Maopao proc lp_str,len_str
pushad
mov ecx,len_str
L1: push ecx
mov esi,lp_str
L2: mov al,[esi+1]
cmp al,0
je L4
cmp al,[esi]
ja L3
or al,30h
mov bl,[esi]
mov [esi],al
or bl,30h
mov [esi+1],bl
L3: inc esi
loop L2
L4: pop ecx
loop L1
popad
ret
Maopao endp
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
start:
invoke MessageBox,NULL,addr str1,addr str1,1
mov eax,offset str1
mov ebx,sizeof str1
invoke Maopao,eax,ebx
invoke MessageBox,NULL,addr str1,addr str1,1
invoke ExitProcess,NULL
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
end start