.386 .model flat, stdcall option casemap:none include \masm32\include\kernel32.inc includelib \masm32\lib\kernel32.lib include \masm32\include\user32.inc includelib \masm32\lib\user32.lib .data txt dd 12 dup (0) msg db "Un ptit coucou a tous !",0 .code start: mov eax, offset txt mov ecx, offset msg DBoucle: mov dl, [ecx] mov [eax], dl inc eax inc ecx cmp dl, 0 je FBoucle jmp DBoucle FBoucle: push 40h ;MB_ICONINFORMATION push offset msg push offset txt push 0 call MessageBox push 0 call ExitProcess end start
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question.386 .model flat, stdcall option casemap:none include \masm32\include\kernel32.inc includelib \masm32\lib\kernel32.lib include \masm32\include\user32.inc includelib \masm32\lib\user32.lib .data msg dd 0 titre db "Un ptit coucou a tous !",0 .code start: mov eax, offset msg mov ecx, offset titre DBoucle: mov dl, [ecx] mov [eax], dl inc eax inc ecx cmp dl, 0 je FBoucle jmp DBoucle FBoucle: push 40h ;MB_ICONINFORMATION push offset titre push offset msg push 0 call MessageBox push 0 call ExitProcess end start
.386 .model flat, stdcall option casemap:none include \masm32\include\kernel32.inc includelib \masm32\lib\kernel32.lib include \masm32\include\user32.inc includelib \masm32\lib\user32.lib .data msg db 12 dup (0) titre db "Un ptit coucou a tous !",0 .code start: mov eax, offset msg mov ecx, offset titre DBoucle: mov dl, [ecx] mov [eax], dl inc eax inc ecx cmp dl, 0 je FBoucle jmp DBoucle FBoucle: push 40h ;MB_ICONINFORMATION push offset titre push offset msg push 0 call MessageBox push 0 call ExitProcess end start