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