repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
. service tells you which device it couldn't stat
[minix3.git]
/
lib
/
i386
/
em
/
em_dup.s
blob
071a46c32f73be07e262cae56139eda9001445ac
1
.sect .text; .sect .rom; .sect .data; .sect .bss
2
.define .dup
3
4
!
#bytes in ecx
5
.sect .text
6
.dup:
7
pop ebx
!
return address
8
mov eax
,
esi
9
mov edx
,
edi
10
mov esi
,
esp
11
sub
esp
,
ecx
12
mov edi
,
esp
13
sar ecx
,
2
14
rep movs
15
mov esi
,
eax
16
mov edi
,
edx
17
jmp ebx