From 4fc77557307e8fe52959c61806c6ddbcd49a828f Mon Sep 17 00:00:00 2001 From: Andrei Holub Date: Fri, 28 Mar 2025 12:54:05 -0400 Subject: [PATCH] move comment --- src/mame/sinclair/spec128.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mame/sinclair/spec128.cpp b/src/mame/sinclair/spec128.cpp index 83d679fec24..c6a1c4353d2 100644 --- a/src/mame/sinclair/spec128.cpp +++ b/src/mame/sinclair/spec128.cpp @@ -205,6 +205,7 @@ template void spectrum_128_state::spectrum_128_ram_w(offs_t offset, u8 ((u8*)m_bank_ram[Bank]->base())[offset] = data; } + // Base 128 models typically don't share RAM in bank0. Reserved for extension in 256+. template void spectrum_128_state::spectrum_128_ram_w<0>(offs_t offset, u8 data); @@ -216,16 +217,15 @@ template u8 spectrum_128_state::spectrum_128_ram_r(offs_t offset) return ((u8*)m_bank_ram[Bank]->base())[offset]; } +// D0-D2: RAM page located at 0x0c000-0x0ffff +// D3: Screen select (screen 0 in ram page 5, screen 1 in ram page 7 +// D4: ROM select - which rom paged into 0x0000-0x03fff +// D5: Disable paging void spectrum_128_state::spectrum_128_port_7ffd_w(offs_t offset, uint8_t data) { if (is_contended(offset)) content_early(); content_early(1); - // D0-D2: RAM page located at 0x0c000-0x0ffff - // D3 - Screen select (screen 0 in ram page 5, screen 1 in ram page 7 - // D4 - ROM select - which rom paged into 0x0000-0x03fff - // D5 - Disable paging - // disable paging? if (m_port_7ffd_data & 0x20) return;