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:
662 bytes
|
Line | |
---|
1 | .globl _strspn
|
---|
2 | .text
|
---|
3 | _strspn:
|
---|
4 | ~~strspn:
|
---|
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 | beq L2
|
---|
42 | *line 26
|
---|
43 | *line 27
|
---|
44 | add #1,R7
|
---|
45 | L3:
|
---|
46 | *line 19
|
---|
47 | add.l #1,R11
|
---|
48 | L4:
|
---|
49 | *line 19
|
---|
50 | tst.b (R11)
|
---|
51 | bne L5
|
---|
52 | L2:
|
---|
53 | *line 30
|
---|
54 | move R7,R0
|
---|
55 | bra L1
|
---|
56 | L1:tst.l (sp)+
|
---|
57 | movem.l (sp)+,R7-R7/R11-R13
|
---|
58 | unlk R14
|
---|
59 | rts
|
---|
60 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.