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_sar4.s
blob
52a1f61924c8753102b0a7170fa8aa888210948a
1
.sect .text; .sect .rom; .sect .data; .sect .bss
2
.sect .text
3
.define .sar4
4
5
.sar4:
6
!
ebx
,
descriptor address
7
!
eax
,
index
8
sub
eax
,(
ebx
)
9
mov ecx
,
8
(
ebx
)
10
imul ecx
11
pop ebx
12
pop edx
!
base address
13
add
edx
,
eax
14
sar ecx
,
1
15
jnb
1
f
16
pop eax
17
movb
(
edx
),
al
18
jmp ebx
19
1
:
20
sar ecx
,
1
21
jnb
1
f
22
pop eax
23
o16 mov
(
edx
),
ax
24
jmp ebx
25
1
:
26
xchg edi
,
edx
!
edi
=
base address
,
edx is saved edi
27
mov eax
,
esi
28
mov esi
,
esp
29
rep movs
30
mov esp
,
esi
31
mov esi
,
eax
32
mov edi
,
edx
33
jmp ebx