]> Shamusworld >> Repos - virtualjaguar/blob - src/include/gpu2.h
Virtual Jaguar 1.0.4 update (Shamus)
[virtualjaguar] / src / include / gpu2.h
1 //void gpu2_exec(int);
2 void gpu2_init(void);
3 //void gpu2_interrupt(int);
4 //void gpu2_set_regbank(int);
5 //int gpu2_get_regbank(void);
6
7 /*typedef struct {
8         signed int r0[32];
9         signed int r1[32];
10         UINT8 z;
11         UINT8 n;
12         UINT8 c;
13         UINT8 flags;
14         UINT32 pc;
15         UINT32 remain;
16         int acc;
17         UINT32 hidata;
18         UINT32 matrix_address;
19         UINT32 matrix_size;
20         UINT32 irq_enable[6];
21         UINT32 irq_active[6];
22         UINT32 active;
23         UINT32 imask;
24         UINT32 regbank;
25         UINT32 bcmd;
26         signed int* reg;
27         signed int* alt;
28         UINT32 r;
29         UINT32 divide;
30         UINT32 single_step;
31         UINT32 interrupt_stack[8];
32         int i_pointer;
33 } GPUSTATE;*/
34
35 //extern GPUSTATE gpustate;
36
37 //extern void (* gpu2_opcode[64])();
38
39 void opcode_add(void);
40 void opcode_addc(void);
41 void opcode_addq(void);
42 void opcode_addqt(void);
43 void opcode_sub(void);
44 void opcode_subc(void);
45 void opcode_subq(void);
46 void opcode_subqt(void);
47 void opcode_neg(void);
48 void opcode_and(void);
49 void opcode_or(void);
50 void opcode_xor(void);
51 void opcode_not(void);
52 void opcode_btst(void);
53 void opcode_bset(void);
54 void opcode_bclr(void);
55 void opcode_mult(void);
56 void opcode_imult(void);
57 void opcode_imultn(void);
58 void opcode_resmac(void);
59 void opcode_imacn(void);
60 void opcode_div(void);
61 void opcode_abs(void);
62 void opcode_sh(void);
63 void opcode_shlq(void);
64 void opcode_shrq(void);
65 void opcode_sha(void);
66 void opcode_sharq(void);
67 void opcode_ror(void);
68 void opcode_rorq(void);
69 void opcode_cmp(void);
70 void opcode_cmpq(void);
71 void opcode_sat8(void);
72 void opcode_sat16(void);
73 void opcode_move(void);
74 void opcode_moveq(void);
75 void opcode_moveta(void);
76 void opcode_movefa(void);
77 void opcode_movei(void);
78 void opcode_loadb(void);
79 void opcode_loadw(void);
80 void opcode_load(void);
81 void opcode_loadp(void);
82 void opcode_load_r14_indexed(void);
83 void opcode_load_r15_indexed(void);
84 void opcode_storeb(void);
85 void opcode_storew(void);
86 void opcode_store(void);
87 void opcode_storep(void);
88 void opcode_store_r14_indexed(void);
89 void opcode_store_r15_indexed(void);
90 void opcode_move_pc(void);
91 void opcode_jump(void);
92 void opcode_jr(void);
93 void opcode_mmult(void);
94 void opcode_mtoi(void);
95 void opcode_normi(void);
96 void opcode_nop(void);
97 void opcode_load_r14_ri(void);
98 void opcode_load_r15_ri(void);
99 void opcode_store_r14_ri(void);
100 void opcode_store_r15_ri(void);
101 void opcode_sat24(void);
102 void opcode_pack(void);
103
104 void (* gpu2_opcode[64])()= 
105 {       
106         opcode_add,                                     opcode_addc,                            opcode_addq,                            opcode_addqt,
107         opcode_sub,                                     opcode_subc,                            opcode_subq,                            opcode_subqt,
108         opcode_neg,                                     opcode_and,                                     opcode_or,                                      opcode_xor,
109         opcode_not,                                     opcode_btst,                            opcode_bset,                            opcode_bclr,
110         opcode_mult,                            opcode_imult,                           opcode_imultn,                          opcode_resmac,
111         opcode_imacn,                           opcode_div,                                     opcode_abs,                                     opcode_sh,
112         opcode_shlq,                            opcode_shrq,                            opcode_sha,                                     opcode_sharq,
113         opcode_ror,                                     opcode_rorq,                            opcode_cmp,                                     opcode_cmpq,
114         opcode_sat8,                            opcode_sat16,                           opcode_move,                            opcode_moveq,
115         opcode_moveta,                          opcode_movefa,                          opcode_movei,                           opcode_loadb,
116         opcode_loadw,                           opcode_load,                            opcode_loadp,                           opcode_load_r14_indexed,
117         opcode_load_r15_indexed,        opcode_storeb,                          opcode_storew,                          opcode_store,
118         opcode_storep,                          opcode_store_r14_indexed,       opcode_store_r15_indexed,       opcode_move_pc,
119         opcode_jump,                            opcode_jr,                                      opcode_mmult,                           opcode_mtoi,
120         opcode_normi,                           opcode_nop,                                     opcode_load_r14_ri,                     opcode_load_r15_ri,
121         opcode_store_r14_ri,            opcode_store_r15_ri,            opcode_sat24,                           opcode_pack,
122 };