mirror of
https://github.com/holub/mame
synced 2025-06-06 04:43:45 +03:00
pc9801: simpler method to init m_egc struct at reset [Robbbert]
This commit is contained in:
parent
79131e997c
commit
e9d7aa17c7
@ -2024,7 +2024,6 @@ MACHINE_RESET_MEMBER(pc9801_state,pc9801f)
|
||||
uint8_t op_mode;
|
||||
uint8_t *ROM;
|
||||
uint8_t *PRG = memregion("fdc_data")->base();
|
||||
int i;
|
||||
|
||||
// TODO: this loading shouldn't happen dynamically but actually be tied to specific floppy configs
|
||||
// pc9801 has no floppy as default
|
||||
@ -2035,13 +2034,13 @@ MACHINE_RESET_MEMBER(pc9801_state,pc9801f)
|
||||
ROM = memregion("fdc_bios_2dd")->base();
|
||||
op_mode = (ioport("ROM_LOAD")->read() & 2) >> 1;
|
||||
|
||||
for(i=0;i<0x1000;i++)
|
||||
for(int i=0;i<0x1000;i++)
|
||||
ROM[i] = PRG[i+op_mode*0x8000];
|
||||
|
||||
ROM = memregion("fdc_bios_2hd")->base();
|
||||
op_mode = ioport("ROM_LOAD")->read() & 1;
|
||||
|
||||
for(i=0;i<0x1000;i++)
|
||||
for(int i=0;i<0x1000;i++)
|
||||
ROM[i] = PRG[i+op_mode*0x8000+0x10000];
|
||||
|
||||
m_beeper->set_state(0);
|
||||
@ -2068,8 +2067,7 @@ MACHINE_RESET_MEMBER(pc9801vm_state,pc9801rs)
|
||||
}
|
||||
|
||||
m_dac1bit_disable = true;
|
||||
|
||||
memset(&m_egc, 0, sizeof(m_egc));
|
||||
m_egc = { };
|
||||
}
|
||||
|
||||
MACHINE_RESET_MEMBER(pc9801bx_state,pc9801bx2)
|
||||
|
@ -341,7 +341,7 @@ protected:
|
||||
uint8_t prev_dx = 0, prev_dy = 0;
|
||||
uint8_t freq_reg = 0;
|
||||
uint8_t freq_index = 0;
|
||||
}m_mouse;
|
||||
} m_mouse;
|
||||
|
||||
private:
|
||||
u8 ppi_mouse_porta_r();
|
||||
@ -467,7 +467,7 @@ protected:
|
||||
struct {
|
||||
uint8_t pal_entry = 0;
|
||||
uint8_t r[16]{}, g[16]{}, b[16]{};
|
||||
}m_analog16;
|
||||
} m_analog16;
|
||||
|
||||
private:
|
||||
// EGC, PC9801VX onward
|
||||
|
Loading…
Reference in New Issue
Block a user