summaryrefslogtreecommitdiffstats
path: root/src/devices/cpu/tms32010/tms32010.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/tms32010/tms32010.h')
-rw-r--r--src/devices/cpu/tms32010/tms32010.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/devices/cpu/tms32010/tms32010.h b/src/devices/cpu/tms32010/tms32010.h
index d595b073997..99c2f084e62 100644
--- a/src/devices/cpu/tms32010/tms32010.h
+++ b/src/devices/cpu/tms32010/tms32010.h
@@ -43,8 +43,8 @@ class tms32010_device : public cpu_device
{
public:
// construction/destruction
- tms32010_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
- tms32010_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int addr_mask);
+ tms32010_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ tms32010_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source, int addr_mask);
// static configuration helpers
template<class _Object> static devcb_base & set_bio_in_cb(device_t &device, _Object object) { return downcast<tms32010_device &>(device).m_bio_in.set_callback(object); }
@@ -55,13 +55,13 @@ protected:
virtual void device_reset() override;
// device_execute_interface overrides
- virtual UINT32 execute_min_cycles() const override { return 1; }
- virtual UINT32 execute_max_cycles() const override { return 3; }
- virtual UINT32 execute_input_lines() const override { return 1; }
+ virtual uint32_t execute_min_cycles() const override { return 1; }
+ virtual uint32_t execute_max_cycles() const override { return 3; }
+ virtual uint32_t execute_input_lines() const override { return 1; }
virtual void execute_run() override;
virtual void execute_set_input(int inputnum, int state) override;
- virtual UINT64 execute_clocks_to_cycles(UINT64 clocks) const override { return (clocks + 4 - 1) / 4; }
- virtual UINT64 execute_cycles_to_clocks(UINT64 cycles) const override { return (cycles * 4); }
+ virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const override { return (clocks + 4 - 1) / 4; }
+ virtual uint64_t execute_cycles_to_clocks(uint64_t cycles) const override { return (cycles * 4); }
// device_memory_interface overrides
virtual const address_space_config *memory_space_config(address_spacenum spacenum = AS_0) const override { return (spacenum == AS_PROGRAM) ? &m_program_config : ( (spacenum == AS_IO) ? &m_io_config : ( (spacenum == AS_DATA) ? &m_data_config : nullptr ) ); }
@@ -70,9 +70,9 @@ protected:
virtual void state_string_export(const device_state_entry &entry, std::string &str) const override;
// device_disasm_interface overrides
- virtual UINT32 disasm_min_opcode_bytes() const override { return 2; }
- virtual UINT32 disasm_max_opcode_bytes() const override { return 4; }
- 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 { return 2; }
+ virtual uint32_t disasm_max_opcode_bytes() const override { return 4; }
+ virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) override;
private:
address_space_config m_program_config;
@@ -84,28 +84,28 @@ private:
typedef void ( tms32010_device::*opcode_func ) ();
struct tms32010_opcode
{
- UINT8 cycles;
+ uint8_t cycles;
opcode_func function;
};
static const tms32010_opcode s_opcode_main[256];
static const tms32010_opcode s_opcode_7F[32];
/******************** CPU Internal Registers *******************/
- UINT16 m_PC;
- UINT16 m_PREVPC; /* previous program counter */
- UINT16 m_STR;
+ uint16_t m_PC;
+ uint16_t m_PREVPC; /* previous program counter */
+ uint16_t m_STR;
PAIR m_ACC;
PAIR m_ALU;
PAIR m_Preg;
- UINT16 m_Treg;
- UINT16 m_AR[2];
- UINT16 m_STACK[4];
+ uint16_t m_Treg;
+ uint16_t m_AR[2];
+ uint16_t m_STACK[4];
PAIR m_opcode;
int m_INTF; /* Pending Interrupt flag */
int m_icount;
PAIR m_oldacc;
- UINT16 m_memaccess;
+ uint16_t m_memaccess;
int m_addr_mask;
address_space *m_program;
@@ -113,18 +113,18 @@ private:
address_space *m_data;
address_space *m_io;
- inline void CLR(UINT16 flag);
- inline void SET_FLAG(UINT16 flag);
- inline void CALCULATE_ADD_OVERFLOW(INT32 addval);
- inline void CALCULATE_SUB_OVERFLOW(INT32 subval);
- inline UINT16 POP_STACK();
- inline void PUSH_STACK(UINT16 data);
+ inline void CLR(uint16_t flag);
+ inline void SET_FLAG(uint16_t flag);
+ inline void CALCULATE_ADD_OVERFLOW(int32_t addval);
+ inline void CALCULATE_SUB_OVERFLOW(int32_t subval);
+ inline uint16_t POP_STACK();
+ inline void PUSH_STACK(uint16_t data);
inline void UPDATE_AR();
inline void UPDATE_ARP();
- inline void getdata(UINT8 shift,UINT8 signext);
- inline void putdata(UINT16 data);
- inline void putdata_sar(UINT8 data);
- inline void putdata_sst(UINT16 data);
+ inline void getdata(uint8_t shift,uint8_t signext);
+ inline void putdata(uint16_t data);
+ inline void putdata_sar(uint8_t data);
+ inline void putdata_sst(uint16_t data);
void opcodes_7F();
void illegal();
void abst();
@@ -199,7 +199,7 @@ class tms32015_device : public tms32010_device
{
public:
// construction/destruction
- tms32015_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ tms32015_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
};
@@ -207,7 +207,7 @@ class tms32016_device : public tms32010_device
{
public:
// construction/destruction
- tms32016_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ tms32016_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
};