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