home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BURKS 2
/
BURKS_AUG97.ISO
/
BURKS
/
SOFTWARE
/
LIBS
/
PMC101.ZIP
/
LIBSRC.ZIP
/
MEMCHK.ASM
(
.txt
)
< prev
next >
Wrap
Assembly Source File
|
1994-06-27
|
664b
|
46 lines
.386p
locals
public MEMCHK
_TEXT segment byte public use32 'CODE'
assume cs:_TEXT
MEMCHK:
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 dl,cl
shr ecx,2
jz short @@02
repe scasd
jne short @@01
@@02:
mov cl,dl
and cl,3
repe scasb
jne short @@01
mov eax,1
jmp short @@00
@@01:
xor eax,eax
@@00:
pop edi
ret 0ch
_TEXT ends
end