Last change
on this file since 81a59aa was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | .globl ___atab
|
---|
2 | .globl _memcmpu
|
---|
3 | .text
|
---|
4 | _memcmpu:
|
---|
5 | ~~memcmpu:
|
---|
6 | ~s1=R13
|
---|
7 | ~s2=R12
|
---|
8 | ~n=16
|
---|
9 | link R14,#0
|
---|
10 | movem.l R5-R7/R12-R13,-(sp)
|
---|
11 | ~c1=R7
|
---|
12 | ~c2=R6
|
---|
13 | *line 17
|
---|
14 | move.l 8(R14),R13
|
---|
15 | *line 17
|
---|
16 | move.l 12(R14),R12
|
---|
17 | *line 17
|
---|
18 | bra L4
|
---|
19 | L3:
|
---|
20 | *line 18
|
---|
21 | *line 19
|
---|
22 | move.b (R13)+,R7
|
---|
23 | *line 20
|
---|
24 | move.b (R12)+,R6
|
---|
25 | *line 21
|
---|
26 | *line 22
|
---|
27 | *line 23
|
---|
28 | move.b R7,R0
|
---|
29 | ext.w R0
|
---|
30 | and #-128,R0
|
---|
31 | bne L5
|
---|
32 | move.b R7,R0
|
---|
33 | ext.w R0
|
---|
34 | ext.l R0
|
---|
35 | add.l #___atab,R0
|
---|
36 | move.l R0,R8
|
---|
37 | btst #4,(R8)
|
---|
38 | beq L5
|
---|
39 | *line 23
|
---|
40 | add.b #-32,R7
|
---|
41 | *line 24
|
---|
42 | L5:
|
---|
43 | *line 25
|
---|
44 | *line 26
|
---|
45 | move.b R6,R0
|
---|
46 | ext.w R0
|
---|
47 | and #-128,R0
|
---|
48 | bne L6
|
---|
49 | move.b R6,R0
|
---|
50 | ext.w R0
|
---|
51 | ext.l R0
|
---|
52 | add.l #___atab,R0
|
---|
53 | move.l R0,R8
|
---|
54 | btst #4,(R8)
|
---|
55 | beq L6
|
---|
56 | *line 26
|
---|
57 | add.b #-32,R6
|
---|
58 | *line 27
|
---|
59 | L6:
|
---|
60 | *line 28
|
---|
61 | *line 29
|
---|
62 | cmp.b R6,R7
|
---|
63 | bge L7
|
---|
64 | *line 29
|
---|
65 | move #-1,R0
|
---|
66 | bra L1
|
---|
67 | *line 30
|
---|
68 | L7:
|
---|
69 | *line 31
|
---|
70 | *line 32
|
---|
71 | cmp.b R6,R7
|
---|
72 | ble L8
|
---|
73 | *line 32
|
---|
74 | move #1,R0
|
---|
75 | bra L1
|
---|
76 | *line 33
|
---|
77 | L8:
|
---|
78 | *line 34
|
---|
79 | sub #1,16(R14)
|
---|
80 | L4:
|
---|
81 | *line 35
|
---|
82 | tst 16(R14)
|
---|
83 | bne L3
|
---|
84 | L2:
|
---|
85 | *line 37
|
---|
86 | clr R0
|
---|
87 | bra L1
|
---|
88 | L1:tst.l (sp)+
|
---|
89 | movem.l (sp)+,R6-R7/R12-R13
|
---|
90 | unlk R14
|
---|
91 | rts
|
---|
92 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.