Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1126 | savelij | 1 | ;;; |
2 | ;;; Test Renesas RX |
||
3 | ;;; |
||
4 | |||
5 | ;;; RXv1 |
||
6 | |||
7 | CPU RXV1 |
||
8 | |||
9 | ;; ABS (0) |
||
10 | ABS R0 ; (1) |
||
11 | ABS R1,R2 ; (2) |
||
12 | |||
13 | ;; ADC (5) |
||
14 | ADC #127,R3 ; (1) |
||
15 | ADC #32767,R4 |
||
16 | ADC #-8388608,R5 |
||
17 | ADC #8388608,R6 |
||
18 | ADC R7,R8 ; (2) |
||
19 | ADC [R9].L,R10 ; (3) |
||
20 | ADC 1020[R11].L,R12 |
||
21 | ADC 1024[R13].L,R14 |
||
22 | |||
23 | ;; ADD (2D) |
||
24 | ADD #15,R0 ; (1) |
||
25 | ADD #127,R1 ; (2) |
||
26 | ADD #32767,R2 |
||
27 | ADD #32768,R3 |
||
28 | ADD #8388608,R4 |
||
29 | ADD R5,R6 ; (3) |
||
30 | ADD [R7].UB,R8 |
||
31 | ADD 128[R9].B,R10 |
||
32 | ADD 512[R11].W,R12 |
||
33 | ADD [R13].L,R14 |
||
34 | ADD 510[R15].UW,R0 |
||
35 | ADD #-128,R1,R2 ; (4) |
||
36 | ADD R3,R4,R5 ; (5) |
||
37 | |||
38 | ;; AND (5B) |
||
39 | AND #8,R6 ; (1) |
||
40 | AND #55AAH,R7 ; (2) |
||
41 | AND R8,R9 ; (3) |
||
42 | AND 32[R10].UB,R11 |
||
43 | AND 192[R12].B,R13 |
||
44 | AND R14,R15,R0 ; (4) |
||
45 | |||
46 | ;; BCLR (6D) |
||
47 | BCLR #7,256[R1].B ; (1) |
||
48 | BCLR R2,[R3].B ; (2) |
||
49 | BCLR #31,R4 ; (3) |
||
50 | BCLR R5,R6 ; (4) |
||
51 | |||
52 | ;; BCnd (79) |
||
53 | BEQ.S $+10 ; (1) |
||
54 | BZ $+3 |
||
55 | BNE $+5 |
||
56 | BNZ.B $+10 ; (2) |
||
57 | BGEU $+32 |
||
58 | BC.B $+127 |
||
59 | BLTU $-128 |
||
60 | BNC $ |
||
61 | BGTU $+64 |
||
62 | BLEU $-64 |
||
63 | BPZ $+16 |
||
64 | BN $-16 |
||
65 | BGE $+32 |
||
66 | BLT $-32 |
||
67 | BGT $+48 |
||
68 | BLE $-48 |
||
69 | BO $+127 |
||
70 | BNO $-128 |
||
71 | BEQ $+128 |
||
72 | BNZ.W $-128 |
||
73 | |||
74 | ;; BMCnd (A0) |
||
75 | BMEQ #0,[R1].B ; (1) |
||
76 | BMZ #1,127[R2] |
||
77 | BMNE #2,128[R3] |
||
78 | BMNZ #3,256[R4].B |
||
79 | BMGEU #4,[R5] |
||
80 | BMC #5,255[R6] |
||
81 | BMLTU #6,65535[R7] |
||
82 | BMNC #7,[R8].B |
||
83 | BMGTU #0,128[R9].B |
||
84 | BMLEU #1,32768[R10].B |
||
85 | BMPZ #2,[R11] |
||
86 | BMN #3,0[R12] |
||
87 | BMGE #8,R13 ; (2) |
||
88 | BMLT #16,R14 |
||
89 | BMGT #24,R15 |
||
90 | BMLE #31,R0 |
||
91 | BMO #31,R1 |
||
92 | BMNO #31,R2 |
||
93 | |||
94 | ;; BNOT (E0) |
||
95 | BNOT #7,[R0].B ; (1) |
||
96 | BNOT R1,128[R2] ; (2) |
||
97 | BNOT #16,R3 ; (3) |
||
98 | BNOT R4,R5 ; (4) |
||
99 | |||
100 | ;; BRA (ED) |
||
101 | BRA $+10 ; (1) |
||
102 | BRA.S $+3 |
||
103 | BRA.B $+3 ; (2) |
||
104 | BRA $+127 |
||
105 | BRA $+128 ; (3) |
||
106 | BRA.W $+64 |
||
107 | BRA $+32768 ; (4) |
||
108 | BRA.A $+64 |
||
109 | BRA R8 ; (5) |
||
110 | BRA.L R9 |
||
111 | |||
112 | ;; BRK (105) |
||
113 | BRK ; (1) |
||
114 | |||
115 | ;; BSET (106) |
||
116 | BSET #7,[R10] ; (1) |
||
117 | BSET R11,256[R12].B ; (2) |
||
118 | BSET #8,R13 ; (3) |
||
119 | BSET R14,R15 ; (4) |
||
120 | |||
121 | ;; BSR (112) |
||
122 | BSR $+128 ; (1) |
||
123 | BSR.W $-128 |
||
124 | BSR $-32769 ; (2) |
||
125 | BSR.A $+32767 |
||
126 | BSR R10 ; (3) |
||
127 | BSR.L R11 |
||
128 | |||
129 | ;; BTST (124) |
||
130 | BTST #0,128[R12] ; (1) |
||
131 | BTST R13,256[R14].B ; (2) |
||
132 | BTST #16,R15 ; (3) |
||
133 | BTST R0,R1 ; (4) |
||
134 | |||
135 | ;; CLRPSW (131) |
||
136 | CLRPSW C ; (1) |
||
137 | CLRPSW S |
||
138 | CLRPSW I |
||
139 | |||
140 | ;; CMP (137) |
||
141 | CMP #15,R2 ; (1) |
||
142 | CMP #128,R3 ; (2) |
||
143 | CMP #-128,R4 ; (3) |
||
144 | CMP R5,R6 ; (4) |
||
145 | CMP 255[R7].UB,R8 |
||
146 | CMP 32768[R9].L,R10 |
||
147 | |||
148 | ;; DIV (149) |
||
149 | DIV #65536,R11 ; (1) |
||
150 | DIV R12,R13 ; (2) |
||
151 | DIV [R14].UB,R15 |
||
152 | DIV 16[R0].L,R1 |
||
153 | |||
154 | ;; DIVU (15A) |
||
155 | DIVU #127,R2 ; (1) |
||
156 | DIVU R3,R4 ; (2) |
||
157 | DIVU 256[R5].UB,R6 |
||
158 | DIVU [R7].B,R8 |
||
159 | |||
160 | ;; EMUL (16A) |
||
161 | EMUL #256,R9 ; (1) |
||
162 | EMUL R10,R11 ; (2) |
||
163 | EMUL [R12].UB,R13 |
||
164 | EMUL 32[R14].W,R15 |
||
165 | |||
166 | ;; EMULU (17A) |
||
167 | EMULU #65536,R0 ; (1) |
||
168 | EMULU R1,R2 ; (2) |
||
169 | EMULU 128[R3].UB,R4 |
||
170 | EMULU 512[R5].L,R6 |
||
171 | |||
172 | ;; FADD (18C) |
||
173 | FADD #0.0,R7 ; (1) |
||
174 | FADD R8,R9 ; (2) |
||
175 | FADD [R10],R11 |
||
176 | |||
177 | ;; FCMP (199) |
||
178 | FCMP #0.15625,R12 ; (1) |
||
179 | FCMP R13,R14 ; (2) |
||
180 | FCMP 1020[R15],R0 |
||
181 | |||
182 | ;; FDIV (1A7) |
||
183 | FDIV #3E200000H,R1 ; (1) |
||
184 | FDIV R2,R3 ; (2) |
||
185 | FDIV 1024[R4],R5 |
||
186 | |||
187 | ;; FMUL (1B6) |
||
188 | FMUL #0.0,R6 ; (1) |
||
189 | FMUL R7,R8 ; (2) |
||
190 | FMUL [R9],R10 |
||
191 | |||
192 | ;; FSUB (1C3) |
||
193 | FSUB #.15625,R11 ; (1) |
||
194 | FSUB R12,R13 ; (2) |
||
195 | FSUB 128[R14],R15 |
||
196 | |||
197 | ;; FTOI (1D1) |
||
198 | FTOI R0,R1 ; (1) |
||
199 | FTOI 2048[R2],R3 |
||
200 | |||
201 | ;; INT (1D9) |
||
202 | INT #255 ; (1) |
||
203 | |||
204 | ;; ITOF (1DC) |
||
205 | ITOF R4,R5 ; (1) |
||
206 | ITOF [R6].UB,R7 |
||
207 | ITOF 4[R8].W,R9 |
||
208 | |||
209 | ;; JMP (1E7) |
||
210 | JMP R10 ; (1) |
||
211 | |||
212 | ;; JSR (1E9) |
||
213 | JSR R11 ; (1) |
||
214 | |||
215 | ;; MACHI (1EB) |
||
216 | MACHI R12,R13 ; (1) |
||
217 | |||
218 | ;; MACLO (1EE) |
||
219 | MACLO R14,R15 |
||
220 | |||
221 | ;; MAX (1F1) |
||
222 | MAX #127,R0 ; (1) |
||
223 | MAX R1,R2 ; (2) |
||
224 | MAX 128[R3].UB,R4 |
||
225 | MAX 256[R5].L,R6 |
||
226 | |||
227 | ;; MIN (201) |
||
228 | MIN #-128,R7 ; (1) |
||
229 | MIN R8,R9 ; (2) |
||
230 | MIN 256[R10].UB,R11 |
||
231 | MIN [R12].B,R13 |
||
232 | |||
233 | ;; MOV (211) |
||
234 | MOV.B R0,5[R1] ; (1) |
||
235 | MOV.W 24[R2],R3 ; (2) |
||
236 | MOV.L #15,R4 ; (3) |
||
237 | MOV.B #255,31[R5] ; (4) |
||
238 | MOV.W #255,62[R6] |
||
239 | MOV.L #128,R8 ; (5) |
||
240 | MOV.L #-128,R9 ; (6) |
||
241 | MOV.L #32767,R10 |
||
242 | MOV.L #8388607,R11 |
||
243 | MOV.L #9999999,R12 |
||
244 | MOV.B R13,R14 ; (7) |
||
245 | MOV.W R15,R0 |
||
246 | MOV.L R1,R2 |
||
247 | MOV.B #-128,[R8] ; (8) |
||
248 | MOV.B #127,15[R9] |
||
249 | MOV.B #255,256[R10] |
||
250 | MOV.W #-128,[R11] |
||
251 | MOV.W #128,128[R12] |
||
252 | MOV.W #65535,1024[R13] |
||
253 | MOV.B [R14],R15 ; (9) |
||
254 | MOV.W 510[R0],R1 |
||
255 | MOV.L 262140[R2],R3 |
||
256 | MOV.B [R4,R5],R6 ; (10) |
||
257 | MOV.W [R7,R8],R9 |
||
258 | MOV.L [R10,R11],R12 |
||
259 | MOV.B R13,[R14] ; (11) |
||
260 | MOV.W R15,64[R0] |
||
261 | MOV.L R1,1024[R2] |
||
262 | MOV.B R3,[R4,R5] ; (12) |
||
263 | MOV.W R6,[R7,R8] |
||
264 | MOV.L R9,[R10,R11] |
||
265 | MOV.B [R12],[R13] ; (13) |
||
266 | MOV.B [R14],192[R15] |
||
267 | MOV.W [R0],512[R1] |
||
268 | MOV.W 64[R2],[R3] |
||
269 | MOV.L 256[R4],512[R5] |
||
270 | MOV.L 768[R6],1024[R7] |
||
271 | MOV.B 256[R8],[R9] |
||
272 | MOV.B 65535[R10],32[R11] |
||
273 | MOV.W 512[R12],4096[R13] |
||
274 | MOV.B R14,[R15+] ; (14) |
||
275 | MOV.W R0,[-R1] |
||
276 | MOV.L [R2+],R3 ; (15) |
||
277 | MOV.B [-R4],R5 |
||
278 | |||
279 | ;; MOVU (2A6) |
||
280 | MOVU.B 7[R0],R1 ; (1) |
||
281 | MOVU.W 62[R2],R3 |
||
282 | MOVU.B R4,R5 ; (2) |
||
283 | MOVU.W [R6],R7 |
||
284 | MOVU.B 255[R8],R9 |
||
285 | MOVU.W 510[R10],R11 |
||
286 | MOVU.B [R12,R13],R14 ; (3) |
||
287 | MOVU.W [R15+],R0 ; (4) |
||
288 | MOVU.B [-R1],R2 |
||
289 | |||
290 | ;; MUL (2BD) |
||
291 | MUL #15,R3 ; (1) |
||
292 | MUL #127,R4 ; (2) |
||
293 | MUL #32767,R5 |
||
294 | MUL #65535,R6 |
||
295 | MUL R7,R8 ; (3) |
||
296 | MUL [R9].UB,R10 |
||
297 | MUL 8[R11].L,R12 |
||
298 | MUL R13,R14,R15 ; (4) |
||
299 | |||
300 | ;; MULHI (2D6) |
||
301 | MULHI R11,R12 |
||
302 | |||
303 | ;; MULLO (2D9) |
||
304 | MULLO R13,R14 |
||
305 | |||
306 | ;; MVFACHI (2DC) |
||
307 | MVFACHI R0 |
||
308 | |||
309 | ;; MVFACMI (2DF) |
||
310 | MVFACMI R1 |
||
311 | |||
312 | ;; MVFC (2E2) |
||
313 | MVFC PSW,R0 |
||
314 | MVFC PC,R1 |
||
315 | MVFC USP,R2 |
||
316 | MVFC FPSW,R3 |
||
317 | MVFC BPSW,R4 |
||
318 | |||
319 | ;; MVTACHI (2F1) |
||
320 | MVTACHI R2 |
||
321 | |||
322 | ;; MVTACLO (2F4) |
||
323 | MVTACLO R3 |
||
324 | |||
325 | ;; MVTC (2F7) |
||
326 | MVTC #1,BPSW ; (1) |
||
327 | MVTC #0100H,BPC |
||
328 | MVTC #10000H,ISP |
||
329 | MVTC #7FFFFFFFH,FINTV |
||
330 | MVTC R4,INTB ; (2) |
||
331 | |||
332 | ;; MVTIPL (310) |
||
333 | SUPMODE ON |
||
334 | MVTIPL #0 |
||
335 | MVTIPL #15 |
||
336 | SUPMODE OFF |
||
337 | EXPECT 50 |
||
338 | MVTIPL #8 |
||
339 | ENDEXPECT |
||
340 | |||
341 | ;; NEG (316) |
||
342 | NEG R5 ; (1) |
||
343 | NEG R6,R7 ; (2) |
||
344 | |||
345 | ;; NOP (31B) |
||
346 | NOP |
||
347 | |||
348 | ;; NOT (31C) |
||
349 | NOT R8 ; (1) |
||
350 | NOT R9,R10 ; (2) |
||
351 | |||
352 | ;; OR (321) |
||
353 | OR #7,R11 ; (1) |
||
354 | OR #7FFFH,R12 ; (2) |
||
355 | OR R13,R14 ; (3) |
||
356 | OR [R15].UB,R0 |
||
357 | OR 256[R1].L,R2 |
||
358 | OR R3,R4,R5 ; (4) |
||
359 | |||
360 | ;; POP (332) |
||
361 | POP R0 |
||
362 | |||
363 | ;; POPC (334) |
||
364 | POPC PSW |
||
365 | |||
366 | ;; POPM (336) |
||
367 | POPM R1-R15 |
||
368 | |||
369 | ;; PUSH (338) |
||
370 | PUSH.B R1 ; (1) |
||
371 | PUSH.W [R2] ; (2) |
||
372 | PUSH.L 256[R3] |
||
373 | PUSH.B 256[R4] |
||
374 | |||
375 | ;; PUSHC (343) |
||
376 | PUSHC USP |
||
377 | |||
378 | ;; PUSHM (345) |
||
379 | PUSHM R5-R6 |
||
380 | |||
381 | ;; RACW (347) |
||
382 | RACW #1 |
||
383 | RACW #2 |
||
384 | |||
385 | ;; REVL (34D) |
||
386 | REVL R7,R8 |
||
387 | |||
388 | ;; REVW (350) |
||
389 | REVW R9,R10 |
||
390 | |||
391 | ;; RMPA (353) |
||
392 | RMPA.B |
||
393 | RMPA.W |
||
394 | RMPA.L |
||
395 | |||
396 | ;; ROLC (359) |
||
397 | ROLC R11 |
||
398 | |||
399 | ;; RORC (35B) |
||
400 | RORC R12 |
||
401 | |||
402 | ;; ROTL (35D) |
||
403 | ROTL #3,R13 ; (1) |
||
404 | ROTL R14,R15 ; (2) |
||
405 | |||
406 | ;; ROTR (363) |
||
407 | ROTR #31,R0 ; (1) |
||
408 | ROTR R1,R2 ; (2) |
||
409 | |||
410 | ;; ROUND (369) |
||
411 | ROUND R3,R4 |
||
412 | ROUND [R5].L,R6 |
||
413 | |||
414 | ;; RTE (36F) |
||
415 | SUPMODE ON |
||
416 | RTE |
||
417 | |||
418 | ;; RTFI (371) |
||
419 | RTFI |
||
420 | SUPMODE OFF |
||
421 | |||
422 | ;; RTS (373) |
||
423 | RTS |
||
424 | |||
425 | ;; RTSD (374) |
||
426 | RTSD #0 ; (1) |
||
427 | RTSD #255,R4-R7 ; (2) |
||
428 | |||
429 | ;; SAT (379) |
||
430 | SAT R8 |
||
431 | |||
432 | ;; SATR (37B) |
||
433 | SATR |
||
434 | |||
435 | ;; SBB (37D) |
||
436 | SBB R9,R10 ; (1) |
||
437 | SBB 256[R11].L,R12 ; (2) |
||
438 | |||
439 | ;; SCCnd (385) |
||
440 | SCEQ.L R0 |
||
441 | SCZ.B [R1] |
||
442 | SCNE.W 24[R2] |
||
443 | SCNZ.L 1024[R3] |
||
444 | SCGEU.L R4 |
||
445 | SCC.L R5 |
||
446 | SCLTU.B [R6] |
||
447 | SCNC.W [R7] |
||
448 | SCGTU.L R8 |
||
449 | SCLEU.B [R9] |
||
450 | SCPZ.W [R10] |
||
451 | SCN.L R11 |
||
452 | SCGE.B [R12] |
||
453 | SCLT.W [R13] |
||
454 | SCGT.L R14 |
||
455 | SCLE.B [R15] |
||
456 | SCO.W [R0] |
||
457 | SCNO.L R1 |
||
458 | |||
459 | ;; SCMPU (3BE) |
||
460 | SCMPU |
||
461 | |||
462 | ;; SETPSW (3C0) |
||
463 | SETPSW Z |
||
464 | SETPSW O |
||
465 | SETPSW U |
||
466 | |||
467 | ;; SHAR (3C6) |
||
468 | SHAR #0,R2 ; (1) |
||
469 | SHAR R3,R4 ; (2) |
||
470 | SHAR #7,R5,R6 ; (3) |
||
471 | |||
472 | ;; SHLL (3CE) |
||
473 | SHLL #31,R7 ; (1) |
||
474 | SHLL R8,R9 ; (2) |
||
475 | SHLL #16,R10,R11 ; (3) |
||
476 | |||
477 | ;; SHLR (3D6) |
||
478 | SHLR #0,R12 ; (1) |
||
479 | SHLR R13,R14 ; (2) |
||
480 | SHLR #8,R15,R0 ; (3) |
||
481 | |||
482 | ;; SMOVB (3DE) |
||
483 | SMOVB |
||
484 | |||
485 | ;; SMOVF (3E0) |
||
486 | SMOVF |
||
487 | |||
488 | ;; SMOVU (3E2) |
||
489 | SMOVU |
||
490 | |||
491 | ;; SSTR (3E4) |
||
492 | SSTR.B |
||
493 | SSTR.W |
||
494 | SSTR.L |
||
495 | |||
496 | ;; STNZ (3EA) |
||
497 | STNZ #100,R0 |
||
498 | |||
499 | ;; STZ (3EE) |
||
500 | STZ #65536,R1 |
||
501 | |||
502 | ;; SUB (3F4) |
||
503 | SUB #8,R2 ; (1) |
||
504 | SUB R3,R4 ; (2) |
||
505 | SUB [R5].UB,R6 |
||
506 | SUB 4[R7].UW,R8 |
||
507 | SUB R9,R10,R11 ; (3) |
||
508 | |||
509 | ;; SUNTIL (401) |
||
510 | SUNTIL.B |
||
511 | |||
512 | ;; SWHILE 403) |
||
513 | SWHILE.W |
||
514 | |||
515 | ;; TST (405) |
||
516 | TST #1024,R12 ; (1) |
||
517 | TST R13,R14 ; (2) |
||
518 | TST 3[R15].UB,R0 |
||
519 | TST 8[R1].L,R2 |
||
520 | |||
521 | ;; WAIT (416) |
||
522 | SUPMODE ON |
||
523 | WAIT |
||
524 | SUPMODE OFF |
||
525 | |||
526 | ;; XCHG (418) |
||
527 | XCHG R3,R4 |
||
528 | XCHG [R5].UB,R6 |
||
529 | XCHG 256[R7].B,R8 |
||
530 | |||
531 | ;; XOR (424) |
||
532 | XOR #256,R9 ; (1) |
||
533 | XOR R10,R11 ; (2) |
||
534 | XOR [R12].UB,R13 |
||
535 | XOR [R14].W,R15 |
||
536 | |||
537 | ;;; RXv2 |
||
538 | CPU RXV2 |
||
539 | |||
540 | ;; FSQRT (433) |
||
541 | FSQRT R0,R1 |
||
542 | FSQRT 1024[R2].L,R3 |
||
543 | |||
544 | ;; FTOU (43B) |
||
545 | FTOU R4,R5 |
||
546 | FTOU [R6].L,R7 |
||
547 | |||
548 | ;; UTOF (441) |
||
549 | UTOF R8,R9 |
||
550 | UTOF [R10].UB,R11 |
||
551 | UTOF [R12].UW,R13 |
||
552 | |||
553 | ;; MOVCO (44B) |
||
554 | MOVCO R14,[R15] |
||
555 | |||
556 | ;; MOVLI (44E) |
||
557 | MOVLI [R0],R1 |
||
558 | |||
559 | ;; EMACA (451) |
||
560 | EMACA R2,R3,A0 |
||
561 | |||
562 | ;; EMSBA (454) |
||
563 | EMSBA R4,R5,A1 |
||
564 | |||
565 | ;; EMULA (457) |
||
566 | EMULA R6,R7,A0 |
||
567 | |||
568 | ;; MACLH (45A) |
||
569 | MACLH R8,R9,A1 |
||
570 | |||
571 | ;; MSBHI (45D) |
||
572 | MSBHI R10,R11,A0 |
||
573 | |||
574 | ;; MSBLH (460) |
||
575 | MSBLH R12,R13,A1 |
||
576 | |||
577 | ;; MSBLO (463) |
||
578 | MSBLO R14,R15,A0 |
||
579 | |||
580 | ;; MULLH (466) |
||
581 | MULLH R0,R1,A1 |
||
582 | |||
583 | ;; MVFACGU (469) |
||
584 | MVFACGU #0,A0,R2 |
||
585 | |||
586 | ;; MVFACLO (46C) |
||
587 | MVFACLO #1,A1,R3 |
||
588 | |||
589 | ;; MVTACGU (46F) |
||
590 | MVTACGU R4,A0 |
||
591 | |||
592 | ;; RACL (472) |
||
593 | RACL #1,A1 |
||
594 | |||
595 | ;; RDACL (475) |
||
596 | RDACL #2,A0 |
||
597 | |||
598 | ;; RDACW (478) |
||
599 | RDACW #1,A1 |
||
600 | |||
601 | ;; FADD (47B) |
||
602 | FADD R5,R6,R7 |
||
603 | |||
604 | ;; FMUL (47E) |
||
605 | FMUL R8,R9,R10 |
||
606 | |||
607 | ;; FSUB (481) |
||
608 | FSUB R11,R12,R13 |
||
609 | |||
610 | ;; STNZ (484) |
||
611 | STNZ R14,R15 |
||
612 | |||
613 | ;; STZ (487) |
||
614 | STZ R0,R1 |
||
615 | |||
616 | ;; MVFC (48A) |
||
617 | MVFC EXTB,R2 |
||
618 | |||
619 | ;; MVTC (48D) |
||
620 | MVTC #127,EXTB |
||
621 | |||
622 | ;; POPC (491) |
||
623 | POPC EXTB |
||
624 | |||
625 | ;; PUSHC (493) |
||
626 | PUSHC EXTB |
||
627 | |||
628 | ;; MACHI (495) |
||
629 | MACHI R3,R4,A0 |
||
630 | |||
631 | ;; MACLO (498) |
||
632 | MACLO R5,R6,A1 |
||
633 | |||
634 | ;; MULHI (49B) |
||
635 | MULHI R7,R8,A0 |
||
636 | |||
637 | ;; MULLO (49E) |
||
638 | MULLO R9,R10,A1 |
||
639 | |||
640 | ;; MVFACHI (4A1) |
||
641 | MVFACHI #2,A0,R11 |
||
642 | |||
643 | ;; MVFACMI (4A4) |
||
644 | MVFACMI #0,A1,R12 |
||
645 | |||
646 | ;; MVTACHI (4A7) |
||
647 | MVTACHI R13,A0 |
||
648 | |||
649 | ;; MVTACLO (4AA) |
||
650 | MVTACLO R14,A1 |
||
651 | |||
652 | ;; RACW (4AD) |
||
653 | RACW #2,A0 |
||
654 | |||
655 | ;;; RXv3 |
||
656 | CPU RXV3 |
||
657 | |||
658 | ;; BFMOV (4B0) |
||
659 | BFMOV #0,#5,#8,R0,R1 |
||
660 | |||
661 | ;; BFMOVZ (4B5) |
||
662 | BFMOVZ #8,#24,#8,R2,R3 |
||
663 | |||
664 | ;; RSTR (4BA) |
||
665 | RSTR #128 ; (1) |
||
666 | RSTR R4 ; (2) |
||
667 | |||
668 | ;; SAVE (4C2) |
||
669 | SAVE #255 ; (1) |
||
670 | SAVE R5 ; (2) |
||
671 | |||
672 | ;; XOR (4CA) |
||
673 | XOR R6,R7,R8 ; (3) |
||
674 | |||
675 | ;; DABS (4CD) |
||
676 | DABS DR0,DR1 |
||
677 | |||
678 | ;; DADD (4D1) |
||
679 | DADD DR2,DR3,DR4 |
||
680 | |||
681 | ;; DCMPcm (4D5) |
||
682 | DCMPUN DR5,DR6 |
||
683 | DCMPEQ DR7,DR8 |
||
684 | DCMPLT DR9,DR10 |
||
685 | DCMPLE DR11,DR12 |
||
686 | |||
687 | ;; DDIV (4E5) |
||
688 | DDIV DR13,DR14,DR15 |
||
689 | |||
690 | ;; DMOV (4E9) |
||
691 | DMOV.D R9,DRH0 ; (1) |
||
692 | DMOV.L R10,DRH1 ; (2) |
||
693 | DMOV.L R11,DRL2 ; (3) |
||
694 | DMOV.L DRH3,R12 ; (4) |
||
695 | DMOV.L DRL4,R13 ; (5) |
||
696 | DMOV.D DR5,DR6 ; (6) |
||
697 | DMOV.D DR7,[R14] ; (7) |
||
698 | DMOV.D 2040[R15],DR8 ; (8) |
||
699 | DMOV.D #12345678H,DRH9 ; (9) |
||
700 | DMOV.L #87654321H,DRH10 ; (10) |
||
701 | DMOV.L #12345678H,DRL11 ; (11) |
||
702 | |||
703 | ;; DMUL (51F) |
||
704 | DMUL DR12,DR13,DR14 |
||
705 | |||
706 | ;; DNEG (523) |
||
707 | DNEG DR15,DR0 |
||
708 | |||
709 | ;; DPOPM (527) |
||
710 | DPOPM.D DR0-DR7 ; (1) |
||
711 | DPOPM.L DCR1-DCR3 ; (2) |
||
712 | DPOPM.L DPSW-DECNT |
||
713 | |||
714 | ;; DPUSHM (530) |
||
715 | DPUSHM.D DR4-DR15 ; (1) |
||
716 | DPUSHM.L DCMR-DEPC ; (2) |
||
717 | |||
718 | ;; DROUND (536) |
||
719 | DROUND DR1,DR2 |
||
720 | |||
721 | ;; DSQRT (53A) |
||
722 | DSQRT DR3,DR4 |
||
723 | |||
724 | ;; DSUB (53E) |
||
725 | DSUB DR5,DR6,DR7 |
||
726 | |||
727 | ;; DTOF (542) |
||
728 | DTOF DR8,DR9 |
||
729 | |||
730 | ;; DTOI (546) |
||
731 | DTOI DR10,DR11 |
||
732 | |||
733 | ;; DTOU (54A) |
||
734 | DTOU DR12,DR13 |
||
735 | |||
736 | ;; FTOD (54E) |
||
737 | FTOD R0,DR14 |
||
738 | |||
739 | ;; ITOD (552) |
||
740 | ITOD R1,DR15 |
||
741 | |||
742 | ;; MVFDC (556) |
||
743 | MVFDC DCR0,R2 |
||
744 | |||
745 | ;; MVFDR (55A) |
||
746 | MVFDR |
||
747 | |||
748 | ;; MVTDC (55D) |
||
749 | MVTDC R3,DCMR |
||
750 | |||
751 | ;; UTOD (561) |
||
752 | UTOD R4,DR0 |
||
753 | |||
754 | ;;; Pseudo Instructions |
||
755 | |||
756 | ALIGN 8,03H |
||
757 | |||
758 | ;; BYTE (568) |
||
759 | BYTE 0,11B,22O,33H |
||
760 | BYTE "Str",0 |
||
761 | |||
762 | BIGENDIAN ON |
||
763 | |||
764 | ;; WORD (570) |
||
765 | WORD -32768,0ABCDH |
||
766 | |||
767 | ;; FLOAT (574) |
||
768 | FLOAT 0.15625 |
||
769 | |||
770 | BIGENDIAN OFF |
||
771 | |||
772 | ;; LWORD (578) |
||
773 | LWORD 12345678H,-2 |
||
774 | |||
775 | ;; DOUBLE (580) |
||
776 | DOUBLE 0.25 |
||
777 | |||
778 | ENDIAN BIG |
||
779 | |||
780 | ;; LWORD (588) |
||
781 | LWORD 89ABCDEFH |
||
782 | |||
783 | ENDIAN LITTLE |
||
784 | |||
785 | ;; LWORD (58C) |
||
786 | LWORD 89ABCDEFH |
||
787 | |||
788 | END |