Skip to content

Commit

Permalink
spg format + softlist
Browse files Browse the repository at this point in the history
  • Loading branch information
holub committed Sep 25, 2024
1 parent 56f6765 commit bf96def
Show file tree
Hide file tree
Showing 8 changed files with 973 additions and 59 deletions.
416 changes: 414 additions & 2 deletions hash/tsconf_betadisc_flop.xml

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/mame/sinclair/spec128.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,13 @@ void spectrum_128_state::spectrum_128_port_7ffd_w(offs_t offset, uint8_t data)
m_exp->iorq_w(offset | 1, data);
}

void spectrum_128_state::bank3_set_page(u8 page)
{
m_port_7ffd_data &= 0xf8;
m_port_7ffd_data |= page & 0x07;
spectrum_128_update_memory();
}

void spectrum_128_state::spectrum_128_update_memory()
{
m_bank_rom[0]->set_entry(BIT(m_port_7ffd_data, 4));
Expand Down
1 change: 1 addition & 0 deletions src/mame/sinclair/spec128.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class spectrum_128_state : public spectrum_state
virtual void machine_start() override;
virtual void machine_reset() override;

virtual void bank3_set_page(u8 page) override;
virtual void spectrum_128_update_memory() override;
virtual rectangle get_screen_area() override;

Expand Down
Loading

0 comments on commit bf96def

Please sign in to comment.