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:
498 bytes
|
Line | |
---|
1 | .globl _rindex
|
---|
2 | .text
|
---|
3 | _rindex:
|
---|
4 | ~~rindex:
|
---|
5 | ~str=R13
|
---|
6 | ~c=13
|
---|
7 | link R14,#0
|
---|
8 | movem.l R7-R7/R12-R13,-(sp)
|
---|
9 | ~cp=R12
|
---|
10 | *line 15
|
---|
11 | move.l 8(R14),R13
|
---|
12 | *line 15
|
---|
13 | move.l R13,R12
|
---|
14 | bra L4
|
---|
15 | L5:L3:L4:
|
---|
16 | *line 15
|
---|
17 | tst.b (R12)+
|
---|
18 | bne L5
|
---|
19 | L2:
|
---|
20 | *line 18
|
---|
21 | bra L8
|
---|
22 | L7:
|
---|
23 | *line 19
|
---|
24 | *line 20
|
---|
25 | move.b -(R12),R0
|
---|
26 | ext.w R0
|
---|
27 | cmp.b 13(R14),R0
|
---|
28 | bne L9
|
---|
29 | *line 20
|
---|
30 | move.l R12,R0
|
---|
31 | bra L1
|
---|
32 | *line 21
|
---|
33 | L9:L8:
|
---|
34 | *line 22
|
---|
35 | cmp.l R13,R12
|
---|
36 | bhi L7
|
---|
37 | L6:
|
---|
38 | *line 22
|
---|
39 | clr.l R0
|
---|
40 | bra L1
|
---|
41 | L1:tst.l (sp)+
|
---|
42 | movem.l (sp)+,R12-R13
|
---|
43 | unlk R14
|
---|
44 | rts
|
---|
45 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.