3 //void gpu2_interrupt(int);
4 //void gpu2_set_regbank(int);
5 //int gpu2_get_regbank(void);
18 UINT32 matrix_address;
31 UINT32 interrupt_stack[8];
35 //extern GPUSTATE gpustate;
37 //extern void (* gpu2_opcode[64])();
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);
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);
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);
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);
104 void (* gpu2_opcode[64])()=
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,