summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine
diff options
context:
space:
mode:
author Nigel Barnes <Pernod70@users.noreply.github.com>2021-08-01 19:53:11 +0100
committer Nigel Barnes <Pernod70@users.noreply.github.com>2021-08-01 19:53:11 +0100
commitc478e4e4b53a7aef178d5a4014c8862632f72969 (patch)
tree04afc6c5a7c090977d7b3f35c52d880f1006f35f /src/mame/machine
parentcdc91a1454e7963fdd7ec97223ef3a25d2e33344 (diff)
coco12.cpp: Corrected installed RAM being off by 1 byte. Fixes MT#08045
Diffstat (limited to 'src/mame/machine')
-rw-r--r--src/mame/machine/coco12.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/machine/coco12.cpp b/src/mame/machine/coco12.cpp
index 4469410ed5f..258834131e0 100644
--- a/src/mame/machine/coco12.cpp
+++ b/src/mame/machine/coco12.cpp
@@ -29,7 +29,7 @@ void coco12_state::device_start()
void coco12_state::configure_sam()
{
- offs_t ramsize = m_ram->size() - 1;
+ offs_t ramsize = m_ram->size();
m_sam->space(0).install_ram(0, ramsize - 1, m_ram->pointer());
if (ramsize < 65536)
m_sam->space(0).nop_readwrite(ramsize, 0xffff);