source: trunk/minix/lib/i386/em/em_cii.s@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 469 bytes
RevLine 
[9]1.sect .text; .sect .rom; .sect .data; .sect .bss
2.define .cii
3
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
152:
16 cmp edx,2
17 jne 1f
18 cwde ! convert from 2 to 4 bytes
19 mov edx,4
201:
21 cmp edx,ecx
22 jne 9f
23 cmp edx,4
24 jne 9f
25 jmp ebx
269:
27.extern EILLINS
28.extern .fat
29 mov eax,EILLINS
30 push eax
31 jmp .fat
Note: See TracBrowser for help on using the repository browser.