ack/mach/pdp/libem/save.s

26 lines
361 B
ArmAsm
Raw Normal View History

1987-05-15 09:11:10 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.sect .text
.define save~,retu~,savearea
1994-06-24 14:02:31 +00:00
! $Id$
1984-07-19 12:51:00 +00:00
save~:
mov r5,savearea
mov $[savearea+2],r5
mov r4,(r5)+
mov r3,(r5)+
mov r2,(r5)+
mov (sp)+,r2
mov (sp)+,(r5)+
jmp (r2)
retu~:
mov -(r5),-(sp)
mov -(r5),r2
mov -(r5),r3
mov -(r5),r4
mov -(r5),r5
rts pc
1987-05-15 09:11:10 +00:00
.sect .bss
1984-07-19 12:51:00 +00:00
savearea:
1987-05-15 09:11:10 +00:00
.space 12