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:
547 bytes
|
Line | |
---|
1 | .globl _strncpy
|
---|
2 | .text
|
---|
3 | _strncpy:
|
---|
4 | ~~strncpy:
|
---|
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 16
|
---|
12 | move.l R13,R11
|
---|
13 | *line 18
|
---|
14 | move.l 8(R14),R13
|
---|
15 | *line 18
|
---|
16 | move.l 12(R14),R12
|
---|
17 | *line 18
|
---|
18 | move 16(R14),R7
|
---|
19 | *line 18
|
---|
20 | bra L4
|
---|
21 | L3:
|
---|
22 | *line 19
|
---|
23 | *line 20
|
---|
24 | move.b (R12)+,(R13)+
|
---|
25 | bne L5
|
---|
26 | *line 20
|
---|
27 | bra L8
|
---|
28 | L7:
|
---|
29 | *line 21
|
---|
30 | clr.b (R13)+
|
---|
31 | L8:
|
---|
32 | *line 21
|
---|
33 | sub #1,R7
|
---|
34 | bge L7
|
---|
35 | L6:
|
---|
36 | *line 22
|
---|
37 | L5:L4:
|
---|
38 | *line 23
|
---|
39 | sub #1,R7
|
---|
40 | bge L3
|
---|
41 | L2:
|
---|
42 | *line 23
|
---|
43 | move.l R11,R0
|
---|
44 | bra L1
|
---|
45 | L1:tst.l (sp)+
|
---|
46 | movem.l (sp)+,R7-R7/R11-R13
|
---|
47 | unlk R14
|
---|
48 | rts
|
---|
49 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.