summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/dsp56k/tables.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/dsp56k/tables.h')
-rw-r--r--src/devices/cpu/dsp56k/tables.h90
1 files changed, 45 insertions, 45 deletions
diff --git a/src/devices/cpu/dsp56k/tables.h b/src/devices/cpu/dsp56k/tables.h
index f0bb88f21d8..2b590dc9027 100644
--- a/src/devices/cpu/dsp56k/tables.h
+++ b/src/devices/cpu/dsp56k/tables.h
@@ -34,60 +34,60 @@ enum op_mnem {oCC, oGE, oNE, oPL,
oSS, oSU, oUU, oINVALID};
-bfShift decode_BBB_table(UINT16 BBB);
-void decode_cccc_table(const UINT16 cccc, op_mnem& mnemonic);
-void decode_DDDDD_table(const UINT16 DDDDD, reg_id& SD);
-void decode_DD_table(const UINT16 DD, reg_id& SD);
-void decode_DDF_table(const UINT16 DD, const UINT16 F, reg_id& S, reg_id& D);
-void decode_EE_table(const UINT16 EE, reg_id& D);
-void decode_F_table(const UINT16 F, reg_id& SD);
-void decode_h0hF_table(const UINT16 h0h, UINT16 F, reg_id& S, reg_id& D);
-void decode_HH_table(const UINT16 HH, reg_id& SD);
-void decode_HHH_table(const UINT16 HHH, reg_id& SD);
-void decode_IIIIx_table(const UINT16 IIII, const UINT16 x, reg_id& S, reg_id& D);
-void decode_JJJF_table(const UINT16 JJJ, const UINT16 F, reg_id& S, reg_id& D);
-void decode_JJF_table(const UINT16 JJ, const UINT16 F, reg_id& S, reg_id& D);
-void decode_JF_table(const UINT16 J, const UINT16 F, reg_id& S, reg_id& D);
-void decode_kSign_table(const UINT16 k, std::string& plusMinus);
-void decode_KKK_table(const UINT16 KKK, reg_id& D1, reg_id& D2);
-void decode_NN_table(UINT16 NN, reg_id& ret);
-void decode_TT_table(UINT16 TT, reg_id& ret);
-void decode_QQF_table(const UINT16 QQ, const UINT16 F, reg_id& S1, reg_id& S2, reg_id& D);
-void decode_QQF_special_table(const UINT16 QQ, const UINT16 F, reg_id& S1, reg_id& S2, reg_id& D);
-void decode_QQQF_table(const UINT16 QQQ, const UINT16 F, reg_id& S1, reg_id& S2, reg_id& D);
-void decode_RR_table(UINT16 RR, reg_id& ret);
-void decode_rr_table(UINT16 rr, reg_id& ret);
-void decode_s_table(const UINT16 s, op_mnem& arithmetic);
-void decode_ss_table(const UINT16 ss, op_mnem& arithmetic);
-void decode_uuuuF_table(const UINT16 uuuu, const UINT16 F, std::string& arg, reg_id& S, reg_id& D);
-void decode_Z_table(const UINT16 Z, std::string& ea);
-
-void assemble_ea_from_m_table(const UINT16 m, const int n, std::string& ea);
-void assemble_eas_from_mm_table(UINT16 mm, int n1, int n2, std::string& ea1, std::string& ea2);
-void assemble_ea_from_MM_table(UINT16 MM, int n, std::string& ea);
-void assemble_ea_from_q_table(UINT16 q, int n, std::string& ea);
-void assemble_ea_from_t_table(UINT16 t, UINT16 val, std::string& ea);
-void assemble_ea_from_z_table(UINT16 z, int n, std::string& ea);
-void assemble_D_from_P_table(UINT16 P, UINT16 ppppp, std::string& D);
-void assemble_arguments_from_W_table(UINT16 W, char ma, const reg_id& SD, const std::string& ea, std::string& S, std::string& D);
-void assemble_arguments_from_W_table(UINT16 W, char ma, const std::string& SD, const std::string& ea, std::string& S, std::string& D);
-void assemble_reg_from_W_table(UINT16 W, char ma, const reg_id& SD, const INT8 xx, std::string& S, std::string& D);
-void assemble_address_from_IO_short_address(UINT16 pp, std::string& ea);
-
-INT8 get_6_bit_signed_value(UINT16 bits);
+bfShift decode_BBB_table(uint16_t BBB);
+void decode_cccc_table(const uint16_t cccc, op_mnem& mnemonic);
+void decode_DDDDD_table(const uint16_t DDDDD, reg_id& SD);
+void decode_DD_table(const uint16_t DD, reg_id& SD);
+void decode_DDF_table(const uint16_t DD, const uint16_t F, reg_id& S, reg_id& D);
+void decode_EE_table(const uint16_t EE, reg_id& D);
+void decode_F_table(const uint16_t F, reg_id& SD);
+void decode_h0hF_table(const uint16_t h0h, uint16_t F, reg_id& S, reg_id& D);
+void decode_HH_table(const uint16_t HH, reg_id& SD);
+void decode_HHH_table(const uint16_t HHH, reg_id& SD);
+void decode_IIIIx_table(const uint16_t IIII, const uint16_t x, reg_id& S, reg_id& D);
+void decode_JJJF_table(const uint16_t JJJ, const uint16_t F, reg_id& S, reg_id& D);
+void decode_JJF_table(const uint16_t JJ, const uint16_t F, reg_id& S, reg_id& D);
+void decode_JF_table(const uint16_t J, const uint16_t F, reg_id& S, reg_id& D);
+void decode_kSign_table(const uint16_t k, std::string& plusMinus);
+void decode_KKK_table(const uint16_t KKK, reg_id& D1, reg_id& D2);
+void decode_NN_table(uint16_t NN, reg_id& ret);
+void decode_TT_table(uint16_t TT, reg_id& ret);
+void decode_QQF_table(const uint16_t QQ, const uint16_t F, reg_id& S1, reg_id& S2, reg_id& D);
+void decode_QQF_special_table(const uint16_t QQ, const uint16_t F, reg_id& S1, reg_id& S2, reg_id& D);
+void decode_QQQF_table(const uint16_t QQQ, const uint16_t F, reg_id& S1, reg_id& S2, reg_id& D);
+void decode_RR_table(uint16_t RR, reg_id& ret);
+void decode_rr_table(uint16_t rr, reg_id& ret);
+void decode_s_table(const uint16_t s, op_mnem& arithmetic);
+void decode_ss_table(const uint16_t ss, op_mnem& arithmetic);
+void decode_uuuuF_table(const uint16_t uuuu, const uint16_t F, std::string& arg, reg_id& S, reg_id& D);
+void decode_Z_table(const uint16_t Z, std::string& ea);
+
+void assemble_ea_from_m_table(const uint16_t m, const int n, std::string& ea);
+void assemble_eas_from_mm_table(uint16_t mm, int n1, int n2, std::string& ea1, std::string& ea2);
+void assemble_ea_from_MM_table(uint16_t MM, int n, std::string& ea);
+void assemble_ea_from_q_table(uint16_t q, int n, std::string& ea);
+void assemble_ea_from_t_table(uint16_t t, uint16_t val, std::string& ea);
+void assemble_ea_from_z_table(uint16_t z, int n, std::string& ea);
+void assemble_D_from_P_table(uint16_t P, uint16_t ppppp, std::string& D);
+void assemble_arguments_from_W_table(uint16_t W, char ma, const reg_id& SD, const std::string& ea, std::string& S, std::string& D);
+void assemble_arguments_from_W_table(uint16_t W, char ma, const std::string& SD, const std::string& ea, std::string& S, std::string& D);
+void assemble_reg_from_W_table(uint16_t W, char ma, const reg_id& SD, const int8_t xx, std::string& S, std::string& D);
+void assemble_address_from_IO_short_address(uint16_t pp, std::string& ea);
+
+int8_t get_6_bit_signed_value(uint16_t bits);
// Helpers
-UINT16 dsp56k_op_maskn(UINT16 cur, UINT16 mask);
+uint16_t dsp56k_op_maskn(uint16_t cur, uint16_t mask);
bool registerOverlap(const reg_id& r0, const size_t bmd, const reg_id& r1);
-UINT16 regValue16(dsp56k_core* cpustate, const reg_id& reg);
-void setReg16(dsp56k_core* cpustate, const UINT16& value, const reg_id& reg);
+uint16_t regValue16(dsp56k_core* cpustate, const reg_id& reg);
+void setReg16(dsp56k_core* cpustate, const uint16_t& value, const reg_id& reg);
std::string regIdAsString(const reg_id& regId);
std::string opMnemonicAsString(const op_mnem& mnem);
reg_id stringAsRegID(const std::string& str);
-UINT8 regIDAsNum(const reg_id& regId);
+uint8_t regIDAsNum(const reg_id& regId);
}