10 Years of Service
70%
[HIDE-THANKS]
[/HIDE-THANKS]
Code:
>.386
.model flat, stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
.data
M db "this will be filled with xs",0
.code
memset proc source:dword, dest:dword, ln:dword
pushad
mov edi,dest
mov ecx,ln
mov eax, source
cld
rep stosb
popad
ret
memset endp
start:
invoke MessageBox, NULL,addr M, addr M, MB_OK
invoke memset,"x", offset M, sizeof M - 1 ;fill procedure
invoke MessageBox, NULL,addr M, addr M, MB_OK
ret
END start