source: trunk/minix/lib/i86/em/em_error.s@ 9

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

Minix 3.1.2a

File size: 468 bytes
Line 
1.define .error
2.define .Xtrp
3
4 ! ax is trap number
5 ! all registers must be saved
6 ! because return is possible
7 ! May only be called with error no's <16
8.text
9.error:
10 push bp
11 push si
12 push di
13 push dx
14 push cx
15 push bx
16 push ax
17 mov cx,ax
18 mov bx,#1
19 sal bx,cl
20.extern .ignmask
21.extern .trp
22 test bx,.ignmask
23 jne 2f
24 call .trp
252:
26 pop ax
27 pop bx
28 pop cx
29 pop dx
30 pop di
31 pop si
32 pop bp
33 ret
34
35.Xtrp:
36 cmp ax,#16
37 jge 1f
38 call .error
39 ret
401:
41 jmp .trp
Note: See TracBrowser for help on using the repository browser.