Last change
on this file since d21fc6f was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
451 bytes
|
Line | |
---|
1 | .globl _strcat
|
---|
2 | .text
|
---|
3 | _strcat:
|
---|
4 | ~~strcat:
|
---|
5 | ~s1=R13
|
---|
6 | ~s2=R12
|
---|
7 | link R14,#0
|
---|
8 | movem.l R7-R7/R11-R13,-(sp)
|
---|
9 | ~os1=R11
|
---|
10 | *line 17
|
---|
11 | move.l 8(R14),R13
|
---|
12 | *line 17
|
---|
13 | move.l 12(R14),R12
|
---|
14 | *line 17
|
---|
15 | move.l R13,R11
|
---|
16 | *line 19
|
---|
17 | bra L4
|
---|
18 | L3:L4:
|
---|
19 | *line 20
|
---|
20 | tst.b (R13)+
|
---|
21 | bne L3
|
---|
22 | L2:
|
---|
23 | *line 22
|
---|
24 | sub.l #1,R13
|
---|
25 | *line 24
|
---|
26 | bra L7
|
---|
27 | L6:L7:
|
---|
28 | *line 25
|
---|
29 | move.b (R12)+,(R13)+
|
---|
30 | bne L6
|
---|
31 | L5:
|
---|
32 | *line 27
|
---|
33 | move.l R11,R0
|
---|
34 | bra L1
|
---|
35 | L1:tst.l (sp)+
|
---|
36 | movem.l (sp)+,R11-R13
|
---|
37 | unlk R14
|
---|
38 | rts
|
---|
39 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.