source: trunk/minix/lib/i86/em/em_csb4.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: 489 bytes
Line 
1.sect .text; .sect .rom; .sect .data; .sect .bss
2.define .csb4
3
4.sect .text
5.csb4:
6 !bx: descriptor address
7 !ax, dx: index
8 push (bx) ! default
9 mov cx,2(bx) ! count (ignore high order word, the descriptor
10 ! would not fit anyway)
111:
12 add bx,#6
13 dec cx
14 jl 4f
15 cmp ax,(bx)
16 jne 1b
17 cmp dx,2(bx)
18 jne 1b
19 pop bx
20 mov bx,4(bx)
212:
22 test bx,bx
23 jnz 3f
24ECASE = 20
25.extern .fat
26 mov ax,#ECASE
27 push ax
28 jmp .fat
293:
30 jmp (bx)
314:
32 pop bx
33 jmp 2b
Note: See TracBrowser for help on using the repository browser.