summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video
diff options
context:
space:
mode:
author angelosa <lordkale4@gmail.com>2022-12-25 02:25:32 +0100
committer angelosa <lordkale4@gmail.com>2022-12-25 02:25:32 +0100
commitec64e9200e5103511e96b4e5e1f2ad2a63eb5a5e (patch)
tree73fbfac3c51f3e683b45c50f8c81e690d6de259d /src/devices/video
parent0ce06a9d748f59455655f004a1d92f5e03d1ee5c (diff)
misc/gamtor.cpp: rearrange SVGA map layout, allow beetlem to show video
Diffstat (limited to 'src/devices/video')
-rw-r--r--src/devices/video/pc_vga.cpp4
-rw-r--r--src/devices/video/pc_vga.h6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/devices/video/pc_vga.cpp b/src/devices/video/pc_vga.cpp
index f5d39a839cf..e21651bf479 100644
--- a/src/devices/video/pc_vga.cpp
+++ b/src/devices/video/pc_vga.cpp
@@ -5004,14 +5004,14 @@ gamtor.cpp implementation
// 65550 is used by Apple PowerBook 2400c
// 65535 is used by IBM PC-110
-uint8_t gamtor_vga_device::mem_r(offs_t offset)
+uint8_t gamtor_vga_device::mem_linear_r(offs_t offset)
{
if (!machine().side_effects_disabled())
logerror("Reading gamtor SVGA memory %08x\n", offset);
return vga.memory[offset];
}
-void gamtor_vga_device::mem_w(offs_t offset, uint8_t data)
+void gamtor_vga_device::mem_linear_w(offs_t offset, uint8_t data)
{
if (offset & 2)
vga.memory[(offset >> 2) + 0x20000] = data;
diff --git a/src/devices/video/pc_vga.h b/src/devices/video/pc_vga.h
index 1d470821ec7..cde088a8b8d 100644
--- a/src/devices/video/pc_vga.h
+++ b/src/devices/video/pc_vga.h
@@ -689,8 +689,10 @@ public:
virtual void port_03c0_w(offs_t offset, uint8_t data) override;
virtual uint8_t port_03d0_r(offs_t offset) override;
virtual void port_03d0_w(offs_t offset, uint8_t data) override;
- virtual uint8_t mem_r(offs_t offset) override;
- virtual void mem_w(offs_t offset, uint8_t data) override;
+// virtual uint8_t mem_r(offs_t offset) override;
+// virtual void mem_w(offs_t offset, uint8_t data) override;
+ virtual uint8_t mem_linear_r(offs_t offset) override;
+ virtual void mem_linear_w(offs_t offset,uint8_t data) override;
protected:
virtual uint16_t offset() override;