summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2021-04-03 07:38:33 -0400
committer arbee <rb6502@users.noreply.github.com>2021-04-03 07:38:33 -0400
commit195d45d3358b11e581d5a7251199337726d21806 (patch)
tree2fbe1cda8a537689fe1d4b6baaa84d884470d590
parent46d17663b3f0400d83bd8e0436f7e636a57da4cf (diff)
a2mockingboard.cpp: fix two off-by-ones on the Phasor address decoding [TomCh]
-rw-r--r--src/devices/bus/a2bus/a2mockingboard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/a2bus/a2mockingboard.cpp b/src/devices/bus/a2bus/a2mockingboard.cpp
index b86abfcecc4..dee688a9749 100644
--- a/src/devices/bus/a2bus/a2mockingboard.cpp
+++ b/src/devices/bus/a2bus/a2mockingboard.cpp
@@ -193,7 +193,7 @@ uint8_t a2bus_phasor_device::read_cnxx(uint8_t offset)
via_sel = (offset & 0x80) ? 2 : 1;
}
- if ((offset <= 0x20) || (offset >= 0x80 && offset <= 0xa0))
+ if ((offset < 0x20) || (offset >= 0x80 && offset <= 0xa0))
{
if (BIT(via_sel, 0))
{
@@ -229,7 +229,7 @@ void a2bus_ayboard_device::write_cnxx(uint8_t offset, uint8_t data)
void a2bus_phasor_device::write_cnxx(uint8_t offset, uint8_t data)
{
- if ((offset <= 0x20) || (offset >= 0x80 && offset <= 0xa0))
+ if ((offset < 0x20) || (offset >= 0x80 && offset <= 0xa0))
{
int via_sel;