Metropoli BBS
VIEWER: memset.asm MODE: TEXT (ASCII)
.386p
locals

public  MEMSET

_TEXT           segment byte public use32 'CODE'
assume  cs:_TEXT

MEMSET:
        push edi
        cld

        mov edi,[esp+4+4+08h]
        mov ecx,[esp+4+4+00h]
        mov al,[esp+4+4+04h]
        mov ah,al
        mov edx,eax
        shl eax,16
        mov ax,dx

        mov edx,ecx
        shr ecx,2
        rep stosd
        mov ecx,edx
        and ecx,3
        rep stosb

        mov eax,[esp+4+4+08h]
        pop edi
        ret 0ch

_TEXT           ends
end

[ RETURN TO DIRECTORY ]