mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
mikrosha.cpp: Import variable from parent state and fix probable typo (nw)
This commit is contained in:
parent
fdfdcf253e
commit
80c49f96e6
@ -33,12 +33,15 @@ public:
|
||||
void mikrosha(machine_config &config);
|
||||
|
||||
private:
|
||||
void mikrosha_8255_font_page_w(uint8_t data);
|
||||
DECLARE_WRITE_LINE_MEMBER(mikrosha_pit_out2);
|
||||
I8275_DRAW_CHARACTER_MEMBER(display_pixels);
|
||||
virtual void machine_reset() override;
|
||||
|
||||
void mikrosha_io(address_map &map);
|
||||
void mikrosha_mem(address_map &map);
|
||||
|
||||
uint8_t m_mikrosha_font_page;
|
||||
};
|
||||
|
||||
void mikrosha_state::machine_reset()
|
||||
@ -161,6 +164,11 @@ static INPUT_PORTS_START( mikrosha )
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) PORT_CHAR(UCHAR_SHIFT_1)
|
||||
INPUT_PORTS_END
|
||||
|
||||
void mikrosha_state::mikrosha_8255_font_page_w(uint8_t data)
|
||||
{
|
||||
m_mikrosha_font_page = (data >> 7) & 1;
|
||||
}
|
||||
|
||||
WRITE_LINE_MEMBER(mikrosha_state::mikrosha_pit_out2)
|
||||
{
|
||||
}
|
||||
@ -216,7 +224,7 @@ void mikrosha_state::mikrosha(machine_config &config)
|
||||
m_ppi8255_1->out_pc_callback().set(FUNC(radio86_state::radio86_8255_portc_w2));
|
||||
|
||||
I8255(config, m_ppi8255_2);
|
||||
m_ppi8255_2->out_pb_callback().set(FUNC(radio86_state::mikrosha_8255_font_page_w));
|
||||
m_ppi8255_2->out_pb_callback().set(FUNC(mikrosha_state::mikrosha_8255_font_page_w));
|
||||
|
||||
i8275_device &i8275(I8275(config, "i8275", XTAL(16'000'000) / 12));
|
||||
i8275.set_character_width(6);
|
||||
|
@ -44,7 +44,6 @@ public:
|
||||
{ }
|
||||
|
||||
uint8_t m_tape_value;
|
||||
uint8_t m_mikrosha_font_page;
|
||||
int m_keyboard_mask;
|
||||
std::unique_ptr<uint8_t[]> m_radio_ram_disk;
|
||||
uint8_t m_romdisk_lsb;
|
||||
@ -68,7 +67,6 @@ public:
|
||||
uint8_t radio86ram_romdisk_porta_r();
|
||||
void radio86_romdisk_portb_w(uint8_t data);
|
||||
void radio86_romdisk_portc_w(uint8_t data);
|
||||
void mikrosha_8255_font_page_w(uint8_t data);
|
||||
uint8_t memory_read_byte(offs_t offset);
|
||||
void memory_write_byte(offs_t offset, uint8_t data);
|
||||
I8275_DRAW_CHARACTER_MEMBER(display_pixels);
|
||||
|
@ -206,11 +206,6 @@ void radio86_state::radio86_romdisk_portc_w(uint8_t data)
|
||||
m_romdisk_msb = data;
|
||||
}
|
||||
|
||||
void radio86_state::mikrosha_8255_font_page_w(uint8_t data)
|
||||
{
|
||||
m_mikrosha_font_page = (data > 7) & 1;
|
||||
}
|
||||
|
||||
I8275_DRAW_CHARACTER_MEMBER(radio86_state::display_pixels)
|
||||
{
|
||||
rgb_t const *const palette = m_palette->palette()->entry_list_raw();
|
||||
|
Loading…
Reference in New Issue
Block a user