1//
2//------------------------------------------------------------
3// Copyright(c) 2009-2010 by Digital Media Professionals Inc.
4// All rights reserved.
5//------------------------------------------------------------
6// This source code is the confidential and proprietary
7// of Digital Media Professionals Inc.
8//------------------------------------------------------------
9//
10
11// Input registers map
12#define aPosition       v0
13
14// Output registers map
15#define vPosition       o0
16
17#define uProjection                 c0
18#define uModelView                  c4
19
20#define TEMP_VIEW           r15
21
22#pragma bind_symbol(aPosition.xyz,v0,v0)
23
24#pragma bind_symbol(uProjection,c0,c3)
25#pragma bind_symbol(uModelView,c4,c7)
26
27#pragma output_map ( position, o0 )
28
29l_position:
30    m4x4    TEMP_VIEW,        aPosition,          uModelView
31	m4x4    vPosition,      TEMP_VIEW,           uProjection
32    ret
33    nop
34
35main:
36    call l_position
37    end
38endmain:
39