diff options
author | Nigel Barnes <Pernod70@users.noreply.github.com> | 2019-11-05 21:11:05 +0000 |
---|---|---|
committer | Nigel Barnes <Pernod70@users.noreply.github.com> | 2019-11-06 11:49:38 +0000 |
commit | 9f5f84272ecec6486a998cff6e46fdad9b73ae61 (patch) | |
tree | 7ff2daa8d07a3c3a2410be5ba9d9542e63811815 /src/mame/video | |
parent | ae04921d528fbf294ae2645139503a372aec3129 (diff) |
bbc.cpp: Replaced ROM/RAM memory banks with handlers to allow access from internal expansion boards.
- Added slot interface for internal expansion boards.
- Added BBC Master cartridge slot interface to allow implementation of more complex cartridges, including Electron cartridge devices.
- Removed Sideways RAM configuration option, to be re-implemented as internal boards.
- Empty BBC Master cartridge sockets return video data on data bus.
Diffstat (limited to 'src/mame/video')
-rw-r--r-- | src/mame/video/bbc.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mame/video/bbc.cpp b/src/mame/video/bbc.cpp index a8416517010..24d8d0f5a4b 100644 --- a/src/mame/video/bbc.cpp +++ b/src/mame/video/bbc.cpp @@ -150,7 +150,7 @@ WRITE8_MEMBER(bbc_state::video_ula_w) else m_screen->update_partial(vpos - 1); - logerror("setting videoULA %.4x to:%.4x at :%d \n", data, offset, vpos); + //logerror("setting videoULA %.4x to:%.4x at :%d \n", data, offset, vpos); switch (offset & 0x01) { @@ -280,6 +280,14 @@ WRITE_LINE_MEMBER(bbc_state::bbc_de_changed) m_teletext_latch &= ~0x80; } +uint8_t bbc_state::bus_video_data() +{ + int hpos = m_screen->hpos(); + int vpos = m_screen->vpos(); + + return m_video_ram[calculate_video_address(hpos, vpos)]; +} + /**** BBC B+/Master Shadow Ram change ****/ void bbc_state::setvideoshadow(int vdusel) |