.386p
locals
extrn STRLEN:near
extrn MEMSET:near
public STRNSET
_TEXT segment byte public use32 'CODE'
assume cs:_TEXT
STRNSET:
mov eax,[esp+4+0+08h]
push eax
call STRLEN
cmp eax,[esp+4+0+00h]
ja short @@00
mov [esp+4+0+00h],eax
@@00:
jmp MEMSET
_TEXT ends
end