1987-01-08 10:13:48 +00:00
|
|
|
.sect .text; .sect .rom; .sect .data; .sect .bss
|
|
|
|
.sect .text
|
1985-02-07 15:33:13 +00:00
|
|
|
.define .trp
|
1993-11-24 12:57:43 +00:00
|
|
|
.define .stop
|
1989-11-03 11:53:47 +00:00
|
|
|
.extern .trppc
|
1985-02-07 15:33:13 +00:00
|
|
|
|
|
|
|
! ax is trap number
|
|
|
|
.trp:
|
|
|
|
xor bx,bx
|
|
|
|
xchg bx,(.trppc)
|
|
|
|
test bx,bx
|
|
|
|
jz 2f
|
|
|
|
push ax
|
|
|
|
call bx
|
|
|
|
pop ax
|
|
|
|
ret
|
|
|
|
2:
|
1992-06-30 15:02:32 +00:00
|
|
|
call .stop
|
1989-11-03 11:53:47 +00:00
|
|
|
|
|
|
|
.stop:
|
1992-06-30 15:02:32 +00:00
|
|
|
jmp EXIT
|