Last change
on this file since 1c4f9be was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
1.8 KB
|
Line | |
---|
1 | .globl _dfltpal
|
---|
2 | .data
|
---|
3 | _dfltpal:
|
---|
4 | .dc.w $0
|
---|
5 | .dc.w $0
|
---|
6 | .dc.w $0
|
---|
7 | .dc.w $0
|
---|
8 | .dc.w $1
|
---|
9 | .dc.w $0
|
---|
10 | .dc.w $0
|
---|
11 | .dc.w $0
|
---|
12 | .dc.w $2
|
---|
13 | .dc.w $0
|
---|
14 | .dc.w $0
|
---|
15 | .dc.w $3
|
---|
16 | .dc.w $0
|
---|
17 | .dc.w $2
|
---|
18 | .dc.w $0
|
---|
19 | .dc.w $0
|
---|
20 | .dc.w $3
|
---|
21 | .dc.w $0
|
---|
22 | .dc.w $0
|
---|
23 | .dc.w $2
|
---|
24 | .dc.w $2
|
---|
25 | .dc.w $0
|
---|
26 | .dc.w $3
|
---|
27 | .dc.w $3
|
---|
28 | .dc.w $3
|
---|
29 | .dc.w $0
|
---|
30 | .dc.w $0
|
---|
31 | .dc.w $3
|
---|
32 | .dc.w $1
|
---|
33 | .dc.w $0
|
---|
34 | .dc.w $3
|
---|
35 | .dc.w $0
|
---|
36 | .dc.w $3
|
---|
37 | .dc.w $3
|
---|
38 | .dc.w $1
|
---|
39 | .dc.w $2
|
---|
40 | .dc.w $3
|
---|
41 | .dc.w $2
|
---|
42 | .dc.w $0
|
---|
43 | .dc.w $2
|
---|
44 | .dc.w $3
|
---|
45 | .dc.w $0
|
---|
46 | .dc.w $2
|
---|
47 | .dc.w $2
|
---|
48 | .dc.w $2
|
---|
49 | .dc.w $3
|
---|
50 | .dc.w $3
|
---|
51 | .dc.w $3
|
---|
52 | .globl _vsetpal
|
---|
53 | .text
|
---|
54 | _vsetpal:
|
---|
55 | ~~vsetpal:
|
---|
56 | ~slot=R7
|
---|
57 | ~red=R6
|
---|
58 | ~grn=R5
|
---|
59 | ~blu=R4
|
---|
60 | link R14,#-4
|
---|
61 | movem.l R2-R7,-(sp)
|
---|
62 | ~palval=R3
|
---|
63 | ~pal=-4
|
---|
64 | *line 52
|
---|
65 | move 8(R14),R7
|
---|
66 | *line 52
|
---|
67 | move 10(R14),R6
|
---|
68 | *line 52
|
---|
69 | move 12(R14),R5
|
---|
70 | *line 52
|
---|
71 | move 14(R14),R4
|
---|
72 | *line 52
|
---|
73 | move.l #$280000,-4(R14)
|
---|
74 | *line 54
|
---|
75 | *line 55
|
---|
76 | *line 56
|
---|
77 | *line 57
|
---|
78 | move R7,R3
|
---|
79 | lsl #6,R3
|
---|
80 | clr R0
|
---|
81 | move R6,R0
|
---|
82 | and #1,R0
|
---|
83 | lsl #5,R0
|
---|
84 | or R0,R3
|
---|
85 | clr R0
|
---|
86 | move R6,R0
|
---|
87 | and #2,R0
|
---|
88 | lsl #1,R0
|
---|
89 | or R0,R3
|
---|
90 | clr R0
|
---|
91 | move R5,R0
|
---|
92 | and #1,R0
|
---|
93 | lsl #4,R0
|
---|
94 | or R0,R3
|
---|
95 | clr R0
|
---|
96 | move R5,R0
|
---|
97 | and #2,R0
|
---|
98 | or R0,R3
|
---|
99 | clr R0
|
---|
100 | move R4,R0
|
---|
101 | and #1,R0
|
---|
102 | lsl #3,R0
|
---|
103 | or R0,R3
|
---|
104 | clr R0
|
---|
105 | move R4,R0
|
---|
106 | and #2,R0
|
---|
107 | lsr #1,R0
|
---|
108 | or R0,R3
|
---|
109 | *line 59
|
---|
110 | clr R0
|
---|
111 | move R3,R0
|
---|
112 | move #63,R1
|
---|
113 | eor R1,R0
|
---|
114 | move.l -4(R14),R9
|
---|
115 | move R0,(R9)
|
---|
116 | L1:tst.l (sp)+
|
---|
117 | movem.l (sp)+,R3-R7
|
---|
118 | unlk R14
|
---|
119 | rts
|
---|
120 | .globl _vsndpal
|
---|
121 | .text
|
---|
122 | _vsndpal:
|
---|
123 | ~~vsndpal:
|
---|
124 | ~pp=8
|
---|
125 | link R14,#0
|
---|
126 | movem.l R6-R7,-(sp)
|
---|
127 | ~i=R7
|
---|
128 | *line 85
|
---|
129 | clr R7
|
---|
130 | bra L5
|
---|
131 | L6:
|
---|
132 | *line 86
|
---|
133 | move.l 8(R14),R8
|
---|
134 | move R7,R1
|
---|
135 | muls #6,R1
|
---|
136 | move 4(R8,R1.l),(sp)
|
---|
137 | move.l 8(R14),R8
|
---|
138 | move R7,R1
|
---|
139 | muls #6,R1
|
---|
140 | move 2(R8,R1.l),-(sp)
|
---|
141 | move.l 8(R14),R8
|
---|
142 | move R7,R1
|
---|
143 | muls #6,R1
|
---|
144 | move 0(R8,R1.l),-(sp)
|
---|
145 | move R7,-(sp)
|
---|
146 | jsr _vsetpal
|
---|
147 | addq.l #6,sp
|
---|
148 | L4:
|
---|
149 | *line 85
|
---|
150 | add #1,R7
|
---|
151 | L5:
|
---|
152 | *line 85
|
---|
153 | cmp #16,R7
|
---|
154 | blt L6
|
---|
155 | L3:L2:tst.l (sp)+
|
---|
156 | movem.l (sp)+,R7-R7
|
---|
157 | unlk R14
|
---|
158 | rts
|
---|
159 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.