8000 minix/lib/ack/i386/em/em_and.s at v3.1.5 · lukegithub/minix · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
executable file
·
20 lines (18 loc) · 286 Bytes

em_and.s

File metadata and controls

executable file
·
20 lines (18 loc) · 286 Bytes
.sect .text; .sect .rom; .sect .data; .sect .bss
.define .and
! #bytes in ecx
! save edi; it might be a register variable
.sect .text
.and:
pop ebx ! return address
mov edx,edi
mov edi,esp
add edi,ecx
sar ecx,2
1:
pop eax
and eax,(edi)
stos
loop 1b
mov edi,edx
jmp ebx
0