mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +03:00
astrocde: More space.device elimination (nw)
This commit is contained in:
parent
d250c6c07c
commit
fb2c2710e8
@ -189,7 +189,7 @@ public:
|
||||
void astrocade_trigger_lightpen(uint8_t vfeedback, uint8_t hfeedback);
|
||||
inline void increment_source(uint8_t curwidth, uint8_t *u13ff);
|
||||
inline void increment_dest(uint8_t curwidth);
|
||||
void execute_blit(address_space &space);
|
||||
void execute_blit();
|
||||
void init_sparklestar();
|
||||
virtual void machine_start() override;
|
||||
|
||||
|
@ -749,8 +749,10 @@ inline void astrocde_state::increment_dest(uint8_t curwidth)
|
||||
}
|
||||
|
||||
|
||||
void astrocde_state::execute_blit(address_space &space)
|
||||
void astrocde_state::execute_blit()
|
||||
{
|
||||
address_space &space = m_maincpu->space(AS_PROGRAM);
|
||||
|
||||
/*
|
||||
m_pattern_source = counter set U7/U16/U25/U34
|
||||
m_pattern_dest = counter set U9/U18/U30/U39
|
||||
@ -841,7 +843,7 @@ void astrocde_state::execute_blit(address_space &space)
|
||||
} while (m_pattern_height-- != 0);
|
||||
|
||||
/* count cycles we ran the bus */
|
||||
space.device().execute().adjust_icount(-cycles);
|
||||
m_maincpu->adjust_icount(-cycles);
|
||||
}
|
||||
|
||||
|
||||
@ -876,7 +878,7 @@ WRITE8_MEMBER(astrocde_state::astrocade_pattern_board_w)
|
||||
|
||||
case 6: /* height of blit and initiator */
|
||||
m_pattern_height = data;
|
||||
execute_blit(m_maincpu->space(AS_PROGRAM));
|
||||
execute_blit();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user