summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/dsp16/dsp16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/dsp16/dsp16.cpp')
-rw-r--r--src/devices/cpu/dsp16/dsp16.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/devices/cpu/dsp16/dsp16.cpp b/src/devices/cpu/dsp16/dsp16.cpp
index 0c41933bf32..6cefa03836c 100644
--- a/src/devices/cpu/dsp16/dsp16.cpp
+++ b/src/devices/cpu/dsp16/dsp16.cpp
@@ -34,7 +34,7 @@ const device_type DSP16 = &device_creator<dsp16_device>;
// dsp16_device - constructor
//-------------------------------------------------
-dsp16_device::dsp16_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+dsp16_device::dsp16_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: cpu_device(mconfig, DSP16, "DSP16", tag, owner, clock, "dsp16", __FILE__),
m_program_config("program", ENDIANNESS_LITTLE, 16, 16, -1),
m_data_config("data", ENDIANNESS_LITTLE, 16, 16, -1),
@@ -225,7 +225,7 @@ void dsp16_device::state_string_export(const device_state_entry &entry, std::str
case DSP16_AUC:
{
std::string alignString;
- const UINT8 align = m_auc & 0x03;
+ const uint8_t align = m_auc & 0x03;
switch (align)
{
case 0x00: alignString = "xy"; break;
@@ -266,7 +266,7 @@ void dsp16_device::state_string_export(const device_state_entry &entry, std::str
case DSP16_PIOC:
{
std::string strobeString;
- const UINT8 strobe = (m_pioc & 0x6000) >> 13;
+ const uint8_t strobe = (m_pioc & 0x6000) >> 13;
switch (strobe)
{
case 0x00: strobeString = "1T"; break;
@@ -297,7 +297,7 @@ void dsp16_device::state_string_export(const device_state_entry &entry, std::str
case DSP16_SIOC:
{
std::string clkString;
- const UINT8 clk = (m_sioc & 0x0180) >> 7;
+ const uint8_t clk = (m_sioc & 0x0180) >> 7;
switch (clk)
{
case 0x00: clkString = "/4"; break;
@@ -326,7 +326,7 @@ void dsp16_device::state_string_export(const device_state_entry &entry, std::str
// of the shortest instruction, in bytes
//-------------------------------------------------
-UINT32 dsp16_device::disasm_min_opcode_bytes() const
+uint32_t dsp16_device::disasm_min_opcode_bytes() const
{
return 2;
}
@@ -337,7 +337,7 @@ UINT32 dsp16_device::disasm_min_opcode_bytes() const
// of the longest instruction, in bytes
//-------------------------------------------------
-UINT32 dsp16_device::disasm_max_opcode_bytes() const
+uint32_t dsp16_device::disasm_max_opcode_bytes() const
{
return 4;
}
@@ -348,7 +348,7 @@ UINT32 dsp16_device::disasm_max_opcode_bytes() const
// helper function
//-------------------------------------------------
-offs_t dsp16_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
+offs_t dsp16_device::disasm_disassemble(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
{
extern CPU_DISASSEMBLE( dsp16a );
return CPU_DISASSEMBLE_NAME(dsp16a)(this, buffer, pc, oprom, opram, options);
@@ -360,19 +360,19 @@ offs_t dsp16_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *op
MEMORY ACCESSORS
***************************************************************************/
-inline UINT32 dsp16_device::data_read(const UINT16& addr)
+inline uint32_t dsp16_device::data_read(const uint16_t& addr)
{
return m_data->read_word(addr << 1);
}
-inline void dsp16_device::data_write(const UINT16& addr, const UINT16& data)
+inline void dsp16_device::data_write(const uint16_t& addr, const uint16_t& data)
{
m_data->write_word(addr << 1, data & 0xffff);
}
-inline UINT32 dsp16_device::opcode_read(const UINT8 pcOffset)
+inline uint32_t dsp16_device::opcode_read(const uint8_t pcOffset)
{
- const UINT16 readPC = m_pc + pcOffset;
+ const uint16_t readPC = m_pc + pcOffset;
return m_direct->read_dword(readPC << 1);
}
@@ -386,7 +386,7 @@ inline UINT32 dsp16_device::opcode_read(const UINT8 pcOffset)
// cycles it takes for one instruction to execute
//-------------------------------------------------
-UINT32 dsp16_device::execute_min_cycles() const
+uint32_t dsp16_device::execute_min_cycles() const
{
return 1;
}
@@ -397,7 +397,7 @@ UINT32 dsp16_device::execute_min_cycles() const
// cycles it takes for one instruction to execute
//-------------------------------------------------
-UINT32 dsp16_device::execute_max_cycles() const
+uint32_t dsp16_device::execute_max_cycles() const
{
return 1;
}
@@ -408,7 +408,7 @@ UINT32 dsp16_device::execute_max_cycles() const
// input/interrupt lines
//-------------------------------------------------
-UINT32 dsp16_device::execute_input_lines() const
+uint32_t dsp16_device::execute_input_lines() const
{
return 1;
}
@@ -434,9 +434,9 @@ void dsp16_device::execute_run()
debugger_instruction_hook(this, m_pc);
// instruction fetch & execute
- UINT8 cycles;
- UINT8 pcAdvance;
- const UINT16 op = opcode_read();
+ uint8_t cycles;
+ uint8_t pcAdvance;
+ const uint16_t op = opcode_read();
execute_one(op, cycles, pcAdvance);
// step