mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
1943: correct mcu interrupt pin
This commit is contained in:
parent
b687a33d6a
commit
bfc0500496
@ -51,11 +51,6 @@
|
||||
|
||||
/* Protection Handlers */
|
||||
|
||||
INTERRUPT_GEN_MEMBER(_1943_state::mcu_irq)
|
||||
{
|
||||
m_mcu->set_input_line(MCS51_INT1_LINE, HOLD_LINE);
|
||||
}
|
||||
|
||||
void _1943_state::mcu_p3_w(u8 data)
|
||||
{
|
||||
// write strobe
|
||||
@ -289,7 +284,6 @@ void _1943_state::_1943(machine_config &config)
|
||||
m_mcu->port_in_cb<2>().set([this](){ return m_audiocpu_to_mcu; });
|
||||
m_mcu->port_out_cb<2>().set([this](u8 data){ m_mcu_p2 = data; });
|
||||
m_mcu->port_out_cb<3>().set(FUNC(_1943_state::mcu_p3_w));
|
||||
m_mcu->set_vblank_int("screen", FUNC(_1943_state::mcu_irq));
|
||||
|
||||
WATCHDOG_TIMER(config, "watchdog");
|
||||
|
||||
@ -298,6 +292,7 @@ void _1943_state::_1943(machine_config &config)
|
||||
m_screen->set_raw(XTAL(24'000'000)/4, 384, 128, 0, 262, 22, 246); // hsync is 50..77, vsync is 257..259
|
||||
m_screen->set_screen_update(FUNC(_1943_state::screen_update));
|
||||
m_screen->set_palette(m_palette);
|
||||
m_screen->screen_vblank().set_inputline(m_mcu, MCS51_INT1_LINE);
|
||||
|
||||
GFXDECODE(config, m_gfxdecode, m_palette, gfx_1943);
|
||||
PALETTE(config, m_palette, FUNC(_1943_state::_1943_palette), 32*4+16*16+16*16+16*16, 256);
|
||||
|
@ -78,7 +78,6 @@ private:
|
||||
u8 m_mcu_p2 = 0;
|
||||
u8 m_mcu_p3 = 0;
|
||||
|
||||
INTERRUPT_GEN_MEMBER(mcu_irq);
|
||||
void mcu_p3_w(u8 data);
|
||||
|
||||
void videoram_w(offs_t offset, u8 data);
|
||||
|
Loading…
Reference in New Issue
Block a user