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