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