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