1985-07-26 12:51:45 +00:00
|
|
|
.define __setsig
|
1987-01-16 16:34:45 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
|
|
|
.sect .text
|
|
|
|
.sect .bss
|
1985-07-26 12:51:45 +00:00
|
|
|
_save:.space 4
|
|
|
|
_trf:.space 4
|
|
|
|
.extern __setsig
|
1987-01-16 16:34:45 +00:00
|
|
|
.sect .text
|
1985-07-26 12:51:45 +00:00
|
|
|
__setsig:
|
|
|
|
enter[], 0
|
|
|
|
movd 8(fp),@_trf
|
|
|
|
movd @.trpreg,r0
|
|
|
|
movd _catchit,@.trpreg
|
|
|
|
movd r0,@_save
|
|
|
|
exit []
|
|
|
|
ret 0
|
|
|
|
_catchit:
|
|
|
|
enter[], 0
|
|
|
|
movd @.trpreg,r0
|
|
|
|
movd _catchit,@.trpreg
|
|
|
|
movd r0,tos
|
|
|
|
adjspd -4
|
|
|
|
movd @_trf,r7
|
|
|
|
movd 8(fp),tos
|
|
|
|
jsr r7
|
|
|
|
cmpqd 0,r4
|
|
|
|
bne I0021
|
|
|
|
movd @.trpreg,r0
|
|
|
|
movd @_save,@.trpreg
|
|
|
|
movd r0,tos
|
|
|
|
adjspd -4
|
|
|
|
jsr @.trp
|
|
|
|
movd @.trpreg,r0
|
|
|
|
movd _catchit,@.trpreg
|
|
|
|
movd r0,tos
|
|
|
|
adjspd -4
|
|
|
|
movd tos,r7
|
|
|
|
movd r7,@_save
|
|
|
|
I0021:
|
|
|
|
exit []
|
|
|
|
ret 0
|