Spectrum +2/+3 contended memory is different to Spectrum 128k [smf]

This commit is contained in:
smf- 2022-05-22 10:28:45 +01:00 committed by Vas Crabb
parent cecbe8e906
commit b9e9b2555a
2 changed files with 7 additions and 0 deletions

View File

@ -371,6 +371,12 @@ static void specpls3_floppies(device_slot_interface &device)
device.option_add("3ssdd", FLOPPY_3_SSDD);
}
bool specpls3_state::is_contended(offs_t offset) {
u8 bank = m_bank_ram[3]->entry();
return spectrum_state::is_contended(offset)
|| ((offset >= 0xc000 && offset <= 0xffff) && (bank & 4)); // Memory banks 4,5,6 and 7 are contended
}
/* F4 Character Displayer */
static const gfx_layout spectrum_charlayout =
{

View File

@ -34,6 +34,7 @@ protected:
virtual void machine_start() override;
virtual void machine_reset() override;
virtual void plus3_update_memory() override;
virtual bool is_contended(offs_t offset) override;
private:
void rom_w(offs_t offset, uint8_t data);