1: / C register save and restore -- version 7/75
   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:         jsr     pc,(r0)         / jsr part is sub $2,sp
  13: 
  14: cret:
  15:         mov     r5,r2
  16:         mov     -(r2),r4
  17:         mov     -(r2),r3
  18:         mov     -(r2),r2
  19:         mov     r5,sp
  20:         mov     (sp)+,r5
  21:         rts     pc

Defined functions

Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 682
Valid CSS Valid XHTML 1.0 Strict