1989-01-19 16:43:32 +00:00
|
|
|
.sect .text; .sect .rom; .sect .data; .sect .bss
|
|
|
|
.sect .text
|
|
|
|
.define .trp
|
1992-06-30 11:39:12 +00:00
|
|
|
.extern .trppc, EXIT
|
1989-01-19 16:43:32 +00:00
|
|
|
|
|
|
|
! eax is trap number
|
|
|
|
.trp:
|
|
|
|
xor ebx,ebx
|
|
|
|
xchg ebx,(.trppc)
|
|
|
|
test ebx,ebx
|
|
|
|
jz 2f
|
|
|
|
push eax
|
|
|
|
call ebx
|
|
|
|
pop eax
|
|
|
|
ret
|
|
|
|
2:
|
1989-10-10 11:38:18 +00:00
|
|
|
push eax
|
1992-06-30 11:39:12 +00:00
|
|
|
jmp EXIT
|