diff options
author | 2020-09-14 23:32:58 -0400 | |
---|---|---|
committer | 2020-09-14 23:32:58 -0400 | |
commit | 7e121d68bb443f579da3271e43255d69925d71a3 (patch) | |
tree | 941183a697631a786b87c36900904f030badc1ad /src/devices/cpu/z80/kc82.cpp | |
parent | 949da6a0b08610f062b1c62255ffc907b2298e8b (diff) |
kl5c80a12, kl5c80a16: Added emulation of KP63(A) Timer/Counter unit. This improves timings in animalc, haekaka, pyenaget and tdoboon.
* animalc: Pile kludge upon kludge for poorly understood video timing register
* gocowboy, itazuram: Increase frequency of one timer interrupt (and hopper timing in gocowboy)
* kc82, kp69: Modernize state_add syntax
Diffstat (limited to 'src/devices/cpu/z80/kc82.cpp')
-rw-r--r-- | src/devices/cpu/z80/kc82.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/devices/cpu/z80/kc82.cpp b/src/devices/cpu/z80/kc82.cpp index dbea8fc70f5..bf0a26290c4 100644 --- a/src/devices/cpu/z80/kc82.cpp +++ b/src/devices/cpu/z80/kc82.cpp @@ -64,13 +64,11 @@ void kc82_device::device_start() for (int n = 1; n <= 4; n++) { - state_add<u8>(KC82_B1 + n - 1, string_format("B%d", n).c_str(), - [this, n]() { return m_mmu_b[n]; }, + state_add(KC82_B1 + n - 1, string_format("B%d", n).c_str(), m_mmu_b[n], [this, n](u8 data) { m_mmu_b[n] = data; mmu_remap_pages(); } ).mask(0x3f); if (n != 4) - state_add<u16>(KC82_A1 + n - 1, string_format("A%d", n).c_str(), - [this, n]() { return m_mmu_a[n]; }, + state_add(KC82_A1 + n - 1, string_format("A%d", n).c_str(), m_mmu_a[n], [this, n](u16 data) { m_mmu_a[n] = data; mmu_remap_pages(); } ).mask(0x3ff); } |