ack/mach/ns/libsys/setsig.s
1987-01-16 16:34:45 +00:00

45 lines
571 B
ArmAsm

.define __setsig
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
.sect .bss
_save:.space 4
_trf:.space 4
.extern __setsig
.sect .text
__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