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