annotate vu1code/MPG.dsm @ 153:0a375e9c4288 gongo tip

close
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 30 Jul 2011 14:45:21 +0900 (2011-07-30)
parents 0fae5658fb0b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
1 /*
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
2 * MPG(Micro Program) for VU1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
3 * MPG is added to packet's head in chain mode DMA
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
4 */
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
5
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
6 .data
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
7 .DmaPackVif 0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
8
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
9 .include "vumacros.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
10
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
11 .global Mpg_start
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
12 .global Dma_start
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
13 .global Screen_matrix
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
14 .global Rot_trans_matrix
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
15 .global Light_color_matrix
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
16 .global Light_matrix
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
17
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
18 Mpg_start:
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
19 .align 0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
20 DMAcnt *
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
21 MPG 0, *
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
22 .include "basic.vsm"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
23 .EndMPG
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
24 .EndDmaData
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
25
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
26 Dma_start:
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
27 DMAnext *, Mpg_start
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
28 unpack 4, 4, V4_32, 0, *; Screen Matrix
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
29 Screen_matrix:
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
30 fwzyx 0.000000, 0.000000, 0.000000, 35.752483
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
31 fwzyx 0.000000, 0.000000, -14.765776, 0.000000
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
32 fwzyx 0.050000, 4995000.000000, 102.400002, 102.400002
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
33 fwzyx 1.000000, 100000000.000000, 2048.000000, 2048.000000
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
34 .EndUnpack
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
35
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
36 unpack 4, 4, V4_32, 4, * ; ROTATION & TRANSLATION MATRIX
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
37 Rot_trans_matrix:
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
38 fwzyx 0.0, -0.000000, -0.000000, 1.000000
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
39 fwzyx 0.0, -0.000000, 1.000000, 0.000000
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
40 fwzyx 0.0, 1.000000, 0.000000, 0.000000
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
41 fwzyx 1.0, 0.000000, 0.000000, 0.000000
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
42 .EndUnpack
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
43
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
44 unpack 4, 4, V4_32, 8, * ; LIGHT COLOR MATRIX
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
45 Light_color_matrix:
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
46 fxyzw 0.2, 0.7, 0.0, 0.0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
47 fxyzw 0.0, 0.0, 0.0, 0.0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
48 fxyzw 0.0, 0.0, 0.0, 0.0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
49 fxyzw 1.0, 1.0, 1.0, 1.0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
50 .EndUnpack
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
51
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
52 unpack 4, 4, V4_32, 12, * ; LIGHT VECTOR MATRIX
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
53 Light_matrix:
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
54 fxyzw 0.0, 0.0, 0.0, 0.000000
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
55 fxyzw 1.0, 0.0, 1.0, 0.000000
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
56 fxyzw 0.0, 1.0, 0.0, 0.000000
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
57 fxyzw 0.0, 0.0, 0.0, 1.000000
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
58 .EndUnpack
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
59
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
60 MSCAL 0 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
61 BASE 0 ; sets the vif1 base register
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
62 OFFSET 512 ; sets the vif1 offset register
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
63 .EndDmaData
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
64