1 #include "registers.hpp" 2 3 uint8 color(uint8 source); 4 void plot(uint8 x, uint8 y); 5 uint8 rpix(uint8 x, uint8 y); 6 void pixelcache_flush(pixelcache_t &cache); 7 8 void (SuperFX::*opcode_table[1024])(); 9 void initialize_opcode_table(); 10 11 //opcodes.cpp 12 template<int> void op_adc_i(); 13 template<int> void op_adc_r(); 14 template<int> void op_add_i(); 15 template<int> void op_add_r(); 16 void op_alt1(); 17 void op_alt2(); 18 void op_alt3(); 19 template<int> void op_and_i(); 20 template<int> void op_and_r(); 21 void op_asr(); 22 void op_bge(); 23 void op_bcc(); 24 void op_bcs(); 25 void op_beq(); 26 template<int> void op_bic_i(); 27 template<int> void op_bic_r(); 28 void op_blt(); 29 void op_bmi(); 30 void op_bne(); 31 void op_bpl(); 32 void op_bra(); 33 void op_bvc(); 34 void op_bvs(); 35 void op_cache(); 36 void op_cmode(); 37 template<int> void op_cmp_r(); 38 void op_color(); 39 template<int> void op_dec_r(); 40 void op_div2(); 41 void op_fmult(); 42 template<int> void op_from_r(); 43 void op_getb(); 44 void op_getbl(); 45 void op_getbh(); 46 void op_getbs(); 47 void op_getc(); 48 void op_hib(); 49 template<int> void op_ibt_r(); 50 template<int> void op_inc_r(); 51 template<int> void op_iwt_r(); 52 template<int> void op_jmp_r(); 53 template<int> void op_ldb_ir(); 54 template<int> void op_ldw_ir(); 55 template<int> void op_link(); 56 template<int> void op_ljmp_r(); 57 template<int> void op_lm_r(); 58 template<int> void op_lms_r(); 59 void op_lmult(); 60 void op_lob(); 61 void op_loop(); 62 void op_lsr(); 63 void op_merge(); 64 template<int> void op_mult_i(); 65 template<int> void op_mult_r(); 66 void op_nop(); 67 void op_not(); 68 template<int> void op_or_i(); 69 template<int> void op_or_r(); 70 void op_plot(); 71 void op_ramb(); 72 void op_rol(); 73 void op_romb(); 74 void op_ror(); 75 void op_rpix(); 76 template<int> void op_sbc_r(); 77 void op_sbk(); 78 void op_sex(); 79 template<int> void op_sm_r(); 80 template<int> void op_sms_r(); 81 template<int> void op_stb_ir(); 82 void op_stop(); 83 template<int> void op_stw_ir(); 84 template<int> void op_sub_i(); 85 template<int> void op_sub_r(); 86 void op_swap(); 87 template<int> void op_to_r(); 88 template<int> void op_umult_i(); 89 template<int> void op_umult_r(); 90 template<int> void op_with_r(); 91 template<int> void op_xor_i(); 92 template<int> void op_xor_r(); 93