| Last change
 on this file since 4810254 was             7bf3856, checked in by Thomas Lopatic <thomas@…>, 8 years ago | 
        
          | 
Added Alcyon C reference output.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            569 bytes | 
      
      
| Rev | Line |  | 
|---|
| [7bf3856] | 1 | .globl _strrtrm | 
|---|
|  | 2 | .text | 
|---|
|  | 3 | _strrtrm: | 
|---|
|  | 4 | ~~strrtrm: | 
|---|
|  | 5 | ~s=8 | 
|---|
|  | 6 | link R14,#0 | 
|---|
|  | 7 | movem.l R7-R7/R12-R13,-(sp) | 
|---|
|  | 8 | ~lp=R13 | 
|---|
|  | 9 | ~rp=R12 | 
|---|
|  | 10 | *line 18 | 
|---|
|  | 11 | move.l 8(R14),R13 | 
|---|
|  | 12 | *line 19 | 
|---|
|  | 13 | move.l 8(R14),R12 | 
|---|
|  | 14 | *line 21 | 
|---|
|  | 15 | bra L4 | 
|---|
|  | 16 | L3: | 
|---|
|  | 17 | *line 22 | 
|---|
|  | 18 | add.l #1,R12 | 
|---|
|  | 19 | L4: | 
|---|
|  | 20 | *line 22 | 
|---|
|  | 21 | tst.b (R12) | 
|---|
|  | 22 | bne L3 | 
|---|
|  | 23 | L2: | 
|---|
|  | 24 | *line 24 | 
|---|
|  | 25 | bra L7 | 
|---|
|  | 26 | L6: | 
|---|
|  | 27 | *line 25 | 
|---|
|  | 28 | *line 26 | 
|---|
|  | 29 | *line 27 | 
|---|
|  | 30 | cmp.b #32,(R12) | 
|---|
|  | 31 | bne L8 | 
|---|
|  | 32 | *line 27 | 
|---|
|  | 33 | clr.b (R12) | 
|---|
|  | 34 | *line 28 | 
|---|
|  | 35 | bra L9 | 
|---|
|  | 36 | L8:bra L5 | 
|---|
|  | 37 | L9: | 
|---|
|  | 38 | *line 29 | 
|---|
|  | 39 | L7: | 
|---|
|  | 40 | *line 30 | 
|---|
|  | 41 | sub.l #1,R12 | 
|---|
|  | 42 | move.l R12,R0 | 
|---|
|  | 43 | cmp.l R0,R13 | 
|---|
|  | 44 | ble L6 | 
|---|
|  | 45 | L5: | 
|---|
|  | 46 | *line 32 | 
|---|
|  | 47 | move.l R13,R0 | 
|---|
|  | 48 | bra L1 | 
|---|
|  | 49 | L1:tst.l (sp)+ | 
|---|
|  | 50 | movem.l (sp)+,R12-R13 | 
|---|
|  | 51 | unlk R14 | 
|---|
|  | 52 | rts | 
|---|
|  | 53 | .data | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.