summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/pentagon.cpp
diff options
context:
space:
mode:
author holub <andrei.holub@gmail.com>2022-04-25 12:08:07 -0400
committer GitHub <noreply@github.com>2022-04-26 02:08:07 +1000
commit44dae68dbb5cd5d9fbb56e919e7bb59644830d2c (patch)
tree16e83588992432d59667aa8b64a24f246746ff55 /src/mame/drivers/pentagon.cpp
parentd7cfc3c187f41ce37a3269c84b184b4474a8ef35 (diff)
cpu/z80: Improved timing within instructions. (#9449)
This allows improved emulation of bus contention in the ZX Spectrum family. Also updated Z80 timings for MSX, Amstrad CPC, and Sega System 1/System 2.
Diffstat (limited to 'src/mame/drivers/pentagon.cpp')
-rw-r--r--src/mame/drivers/pentagon.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mame/drivers/pentagon.cpp b/src/mame/drivers/pentagon.cpp
index a98abb8b66b..9040db14f7f 100644
--- a/src/mame/drivers/pentagon.cpp
+++ b/src/mame/drivers/pentagon.cpp
@@ -118,13 +118,12 @@ void pentagon_state::pentagon_scr2_w(offs_t offset, uint8_t data)
rectangle pentagon_state::get_screen_area()
{
- //TODO Possible because of incorrect z80 we have to adjust x+1 to make AccrossTheEdge look nicer
- return rectangle{137, 137 + 255, 80, 80 + 191};
+ return rectangle{136, 136 + 255, 80, 80 + 191};
}
INTERRUPT_GEN_MEMBER(pentagon_state::pentagon_interrupt)
{
- timer_set(m_screen->time_until_pos(0) - m_maincpu->clocks_to_attotime(1), TIMER_IRQ_ON, 0);
+ timer_set(m_screen->time_until_pos(0) + /*???*/ m_maincpu->clocks_to_attotime(3), TIMER_IRQ_ON, 0);
}
uint8_t pentagon_state::beta_neutral_r(offs_t offset)