summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/esrip/esrip.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/esrip/esrip.h')
-rw-r--r--src/devices/cpu/esrip/esrip.h176
1 files changed, 88 insertions, 88 deletions
diff --git a/src/devices/cpu/esrip/esrip.h b/src/devices/cpu/esrip/esrip.h
index 852ce65533e..3d7fdc093e2 100644
--- a/src/devices/cpu/esrip/esrip.h
+++ b/src/devices/cpu/esrip/esrip.h
@@ -116,7 +116,7 @@ class esrip_device : public cpu_device
{
public:
// construction/destruction
- esrip_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ esrip_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// inline configuration helpers
template<class _Object> static devcb_base &static_set_fdt_r_callback(device_t &device, _Object object) { return downcast<esrip_device &>(device).m_fdt_r.set_callback(object); }
@@ -126,7 +126,7 @@ public:
static void static_lbrm_prom(device_t &device, const char *name) { downcast<esrip_device &>(device).m_lbrm_prom = name; }
// public interfaces
- UINT8 get_rip_status();
+ uint8_t get_rip_status();
protected:
// device-level overrides
@@ -137,9 +137,9 @@ protected:
void make_ops();
// device_execute_interface overrides
- virtual UINT32 execute_min_cycles() const override;
- virtual UINT32 execute_max_cycles() const override;
- virtual UINT32 execute_input_lines() const override;
+ virtual uint32_t execute_min_cycles() const override;
+ virtual uint32_t execute_max_cycles() const override;
+ virtual uint32_t execute_input_lines() const override;
virtual void execute_run() override;
virtual void execute_set_input(int inputnum, int state) override;
@@ -147,9 +147,9 @@ protected:
virtual const address_space_config *memory_space_config(address_spacenum spacenum = AS_0) const override;
// device_disasm_interface overrides
- virtual UINT32 disasm_min_opcode_bytes() const override;
- virtual UINT32 disasm_max_opcode_bytes() const override;
- virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options) override;
+ virtual uint32_t disasm_min_opcode_bytes() const override;
+ virtual uint32_t disasm_max_opcode_bytes() const override;
+ virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) override;
// device_state_interface overrides
virtual void state_string_export(const device_state_entry &entry, std::string &str) const override;
@@ -158,52 +158,52 @@ protected:
const address_space_config m_program_config;
// CPU registers
- UINT16 m_ram[32];
- UINT16 m_acc;
- UINT16 m_d_latch;
- UINT16 m_i_latch;
- UINT16 m_result;
- UINT8 m_new_status;
- UINT8 m_status;
- UINT16 m_inst;
- UINT8 m_immflag;
- UINT8 m_ct;
- UINT8 m_t;
+ uint16_t m_ram[32];
+ uint16_t m_acc;
+ uint16_t m_d_latch;
+ uint16_t m_i_latch;
+ uint16_t m_result;
+ uint8_t m_new_status;
+ uint8_t m_status;
+ uint16_t m_inst;
+ uint8_t m_immflag;
+ uint8_t m_ct;
+ uint8_t m_t;
/* Instruction latches - current and previous values */
- UINT8 m_l1, m_pl1;
- UINT8 m_l2, m_pl2;
- UINT8 m_l3, m_pl3;
- UINT8 m_l4, m_pl4;
- UINT8 m_l5, m_pl5;
- UINT8 m_l6, m_pl6;
- UINT8 m_l7, m_pl7;
-
- UINT8 m_pc;
- UINT16 m_rip_pc;
- UINT8 m_status_out;
-
- UINT8 m_x_scale;
- UINT8 m_y_scale;
- UINT8 m_img_bank;
- UINT8 m_line_latch;
- UINT16 m_fig_latch;
- UINT16 m_attr_latch;
- UINT16 m_adl_latch;
- UINT16 m_adr_latch;
- UINT16 m_iaddr_latch;
- UINT8 m_c_latch;
-
- UINT16 m_fdt_cnt;
- UINT16 m_ipt_cnt;
-
- UINT8 m_fig;
- UINT16 m_fig_cycles;
-
- UINT8 m_optable[65536];
-
- std::vector<UINT16> m_ipt_ram;
- UINT8 *m_lbrm;
+ uint8_t m_l1, m_pl1;
+ uint8_t m_l2, m_pl2;
+ uint8_t m_l3, m_pl3;
+ uint8_t m_l4, m_pl4;
+ uint8_t m_l5, m_pl5;
+ uint8_t m_l6, m_pl6;
+ uint8_t m_l7, m_pl7;
+
+ uint8_t m_pc;
+ uint16_t m_rip_pc;
+ uint8_t m_status_out;
+
+ uint8_t m_x_scale;
+ uint8_t m_y_scale;
+ uint8_t m_img_bank;
+ uint8_t m_line_latch;
+ uint16_t m_fig_latch;
+ uint16_t m_attr_latch;
+ uint16_t m_adl_latch;
+ uint16_t m_adr_latch;
+ uint16_t m_iaddr_latch;
+ uint8_t m_c_latch;
+
+ uint16_t m_fdt_cnt;
+ uint16_t m_ipt_cnt;
+
+ uint8_t m_fig;
+ uint16_t m_fig_cycles;
+
+ uint8_t m_optable[65536];
+
+ std::vector<uint16_t> m_ipt_ram;
+ uint8_t *m_lbrm;
address_space *m_program;
direct_read_data *m_direct;
@@ -216,7 +216,7 @@ protected:
esrip_draw_delegate m_draw;
const char *m_lbrm_prom;
- typedef void (esrip_device::*ophandler)(UINT16 inst);
+ typedef void (esrip_device::*ophandler)(uint16_t inst);
ophandler m_opcode[24];
@@ -225,56 +225,56 @@ protected:
private:
int get_hblank() const;
int get_lbrm() const;
- int check_jmp(UINT8 jmp_ctrl) const;
+ int check_jmp(uint8_t jmp_ctrl) const;
// flags
- void calc_z_flag(UINT16 res);
- void calc_c_flag_add(UINT16 a, UINT16 b);
- void calc_c_flag_sub(UINT16 a, UINT16 b);
- void calc_n_flag(UINT16 res);
- void calc_v_flag_add(UINT16 a, UINT16 b, UINT32 r);
- void calc_v_flag_sub(UINT16 a, UINT16 b, UINT32 r);
+ void calc_z_flag(uint16_t res);
+ void calc_c_flag_add(uint16_t a, uint16_t b);
+ void calc_c_flag_sub(uint16_t a, uint16_t b);
+ void calc_n_flag(uint16_t res);
+ void calc_v_flag_add(uint16_t a, uint16_t b, uint32_t r);
+ void calc_v_flag_sub(uint16_t a, uint16_t b, uint32_t r);
// opcodes
- UINT16 sor_op(UINT16 r, UINT16 opcode);
- void sor(UINT16 inst);
- void sonr(UINT16 inst);
+ uint16_t sor_op(uint16_t r, uint16_t opcode);
+ void sor(uint16_t inst);
+ void sonr(uint16_t inst);
- UINT16 tor_op(UINT16 r, UINT16 s, int opcode);
- void tonr(UINT16 inst);
- void tor1(UINT16 inst);
- void tor2(UINT16 inst);
+ uint16_t tor_op(uint16_t r, uint16_t s, int opcode);
+ void tonr(uint16_t inst);
+ void tor1(uint16_t inst);
+ void tor2(uint16_t inst);
- void bonr(UINT16 inst);
- void bor1(UINT16 inst);
- void bor2(UINT16 inst);
+ void bonr(uint16_t inst);
+ void bor1(uint16_t inst);
+ void bor2(uint16_t inst);
- void rotr1(UINT16 inst);
- void rotr2(UINT16 inst);
- void rotnr(UINT16 inst);
- void rotc(UINT16 inst);
- void rotm(UINT16 inst);
+ void rotr1(uint16_t inst);
+ void rotr2(uint16_t inst);
+ void rotnr(uint16_t inst);
+ void rotc(uint16_t inst);
+ void rotm(uint16_t inst);
- void prt(UINT16 inst);
- void prtnr(UINT16 inst);
+ void prt(uint16_t inst);
+ void prtnr(uint16_t inst);
- void crcf(UINT16 inst);
- void crcr(UINT16 inst);
+ void crcf(uint16_t inst);
+ void crcr(uint16_t inst);
- UINT16 shift_op(UINT16 u, int opcode);
- void shftr(UINT16 inst);
- void shftnr(UINT16 inst);
+ uint16_t shift_op(uint16_t u, int opcode);
+ void shftr(uint16_t inst);
+ void shftnr(uint16_t inst);
- void svstr(UINT16 inst);
+ void svstr(uint16_t inst);
- void rstst(UINT16 inst);
- void setst(UINT16 inst);
+ void rstst(uint16_t inst);
+ void setst(uint16_t inst);
- void test(UINT16 inst);
+ void test(uint16_t inst);
- void nop(UINT16 inst);
+ void nop(uint16_t inst);
- void am29116_execute(UINT16 inst, int _sre);
+ void am29116_execute(uint16_t inst, int _sre);
};