. service tells you which device it couldn't stat
[minix3.git] / lib / i386 / em / em_cii.s
blob0ad7ce302d1a4a9768606bdbfc3b3b6ca535080b
1 .sect .text; .sect .rom; .sect .data; .sect .bss
2 .define .cii
4 .sect .text
5 .cii:
6 pop ebx ! return address
7 ! pop ecx, dest. size
8 ! pop edx, src. size
9 ! eax is source
10 cmp edx,1
11 jne 2f
12 movsxb eax,al
13 mov edx,4
14 jmp 1f
16 cmp edx,2
17 jne 1f
18 cwde ! convert from 2 to 4 bytes
19 mov edx,4
21 cmp edx,ecx
22 jne 9f
23 cmp edx,4
24 jne 9f
25 jmp ebx
27 .extern EILLINS
28 .extern .fat
29 mov eax,EILLINS
30 push eax
31 jmp .fat