1: / C register save and restore -- version 12/74 2: 3: .globl csv 4: .globl cret 5: 6: csv: 7: mov r5,r0 8: mov sp,r5 9: mov r4,-(sp) 10: mov r3,-(sp) 11: mov r2,-(sp) 12: tst -(sp) 13: jmp (r0) 14: 15: cret: 16: mov r5,r1 17: mov -(r1),r4 18: mov -(r1),r3 19: mov -(r1),r2 20: mov r5,sp 21: mov (sp)+,r5 22: rts pc