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