summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/z180
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2024-09-20 10:53:36 +0200
committer hap <happppp@users.noreply.github.com>2024-09-20 10:53:36 +0200
commit0fc27e1da52cbeff8220e3e341043a5229a89ef5 (patch)
treefaceef4bc458f123773eba8aa3cc1201e3a07368 /src/devices/cpu/z180
parentc605f2ca4af851f470fc7425e937c512f09f8878 (diff)
tlcs90: small spacing cleanup, remove execute_burn altogether (renamed but keeping it in z180 after seeing TODO note),
kl1839vm1: execute_input_lines getter was removed from mame
Diffstat (limited to 'src/devices/cpu/z180')
-rw-r--r--src/devices/cpu/z180/z180.cpp7
-rw-r--r--src/devices/cpu/z180/z180.h2
-rw-r--r--src/devices/cpu/z180/z180dasm.cpp1
-rw-r--r--src/devices/cpu/z180/z180dasm.h1
-rw-r--r--src/devices/cpu/z180/z180dd.hxx3
5 files changed, 6 insertions, 8 deletions
diff --git a/src/devices/cpu/z180/z180.cpp b/src/devices/cpu/z180/z180.cpp
index 3097427bd69..b7c11b2b175 100644
--- a/src/devices/cpu/z180/z180.cpp
+++ b/src/devices/cpu/z180/z180.cpp
@@ -2,7 +2,6 @@
// copyright-holders:Juergen Buchmueller
/*****************************************************************************
*
- * z180.c
* Portable Z180 emulator V0.3
*
*****************************************************************************/
@@ -13,8 +12,8 @@
- HALT processing is not yet perfect. The manual states that
during HALT, all dma and internal i/o incl. timers continue to
work. Currently, only timers are implemented. Ideally, the
- burn_cycles routine would go away and halt processing be
- implemented in cpu_execute.
+ (currently unused) burn_cycles routine would go away and halt
+ processing be implemented in execute_run.
- Documentation for RXS/CTS1 pin is contradictory.
@@ -2015,7 +2014,7 @@ again:
/****************************************************************************
* Burn 'cycles' T-states. Adjust R register for the lost time
****************************************************************************/
-void z180_device::execute_burn(int32_t cycles)
+void z180_device::burn_cycles(int32_t cycles)
{
int extra_cycles = memory_wait_states();
diff --git a/src/devices/cpu/z180/z180.h b/src/devices/cpu/z180/z180.h
index 18aa0b5770f..4a8e0e5e4a5 100644
--- a/src/devices/cpu/z180/z180.h
+++ b/src/devices/cpu/z180/z180.h
@@ -147,7 +147,6 @@ protected:
virtual uint32_t execute_default_irq_vector(int inputnum) const noexcept override { return 0xff; }
virtual bool execute_input_edge_triggered(int inputnum) const noexcept override { return inputnum == INPUT_LINE_NMI; }
virtual void execute_run() override;
- [[maybe_unused]] void execute_burn(int32_t cycles);
virtual void execute_set_input(int inputnum, int state) override;
// device_memory_interface implementation
@@ -164,6 +163,7 @@ protected:
virtual uint8_t z180_internal_port_read(uint8_t port);
virtual void z180_internal_port_write(uint8_t port, uint8_t data);
+ [[maybe_unused]] void burn_cycles(int32_t cycles);
address_space_config m_program_config;
address_space_config m_io_config;
diff --git a/src/devices/cpu/z180/z180dasm.cpp b/src/devices/cpu/z180/z180dasm.cpp
index 393f9a51946..835c620770d 100644
--- a/src/devices/cpu/z180/z180dasm.cpp
+++ b/src/devices/cpu/z180/z180dasm.cpp
@@ -2,7 +2,6 @@
// copyright-holders:Juergen Buchmueller
/*****************************************************************************
*
- * z180dasm.c
* Portable Z8x180 disassembler
*
*****************************************************************************/
diff --git a/src/devices/cpu/z180/z180dasm.h b/src/devices/cpu/z180/z180dasm.h
index a13c7d92fe1..1d6de1bbf5d 100644
--- a/src/devices/cpu/z180/z180dasm.h
+++ b/src/devices/cpu/z180/z180dasm.h
@@ -2,7 +2,6 @@
// copyright-holders:Juergen Buchmueller
/*****************************************************************************
*
- * z180dasm.c
* Portable Z8x180 disassembler
*
*****************************************************************************/
diff --git a/src/devices/cpu/z180/z180dd.hxx b/src/devices/cpu/z180/z180dd.hxx
index d73c9720cf3..2bee2a99d62 100644
--- a/src/devices/cpu/z180/z180dd.hxx
+++ b/src/devices/cpu/z180/z180dd.hxx
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Juergen Buchmueller
-OP(illegal,1) {
+OP(illegal,1)
+{
logerror("Z180 '%s' ill. opcode $%02x $%02x\n",
tag(), m_copcodes.read_byte((_PCD-1)&0xffff), m_copcodes.read_byte(_PCD));
}