summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ti99/peb/pcode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ti99/peb/pcode.cpp')
-rw-r--r--src/devices/bus/ti99/peb/pcode.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/devices/bus/ti99/peb/pcode.cpp b/src/devices/bus/ti99/peb/pcode.cpp
index 156d190adc6..270e18d169c 100644
--- a/src/devices/bus/ti99/peb/pcode.cpp
+++ b/src/devices/bus/ti99/peb/pcode.cpp
@@ -75,14 +75,14 @@
#include "emu.h"
#include "pcode.h"
-#define LOG_WARN (1U<<1) // Warnings
-#define LOG_CONFIG (1U<<2) // Configuration
-#define LOG_ROM (1U<<3)
-#define LOG_GROM (1U<<4)
-#define LOG_SWITCH (1U<<5)
-#define LOG_CRU (1U<<6)
+#define LOG_WARN (1U << 1) // Warnings
+#define LOG_CONFIG (1U << 2) // Configuration
+#define LOG_ROM (1U << 3)
+#define LOG_GROM (1U << 4)
+#define LOG_SWITCH (1U << 5)
+#define LOG_CRU (1U << 6)
-#define VERBOSE ( LOG_CONFIG | LOG_WARN )
+#define VERBOSE (LOG_CONFIG | LOG_WARN)
#include "logmacro.h"
@@ -149,7 +149,7 @@ void ti_pcode_card_device::debugger_read(offs_t offset, uint8_t& value)
{
bool isrom0 = ((offset & 0xf000)==0x4000);
bool isrom12 = ((offset & 0xf000)==0x5000);
- if (isrom0) value = m_rom[m_address & 0x0fff];
+ if (isrom0) value = m_rom[offset & 0x0fff];
else
if (isrom12) value = m_rom[(m_bank_select<<12) | (offset & 0x0fff)];
}
@@ -161,6 +161,7 @@ void ti_pcode_card_device::readz(offs_t offset, uint8_t *value)
if (machine().side_effects_disabled())
{
debugger_read(offset, *value);
+ return;
}
if (m_active && m_inDsrArea && m_selected)
@@ -213,7 +214,7 @@ void ti_pcode_card_device::write(offs_t offset, uint8_t data)
/*
Common READY* line from the GROMs.
*/
-WRITE_LINE_MEMBER( ti_pcode_card_device::ready_line )
+void ti_pcode_card_device::ready_line(int state)
{
m_slot->set_ready(state);
}
@@ -223,7 +224,7 @@ WRITE_LINE_MEMBER( ti_pcode_card_device::ready_line )
clock input for the GROMs, which are thus running at a lower rate than
those in the console driven by the VDP (477 kHz).
*/
-WRITE_LINE_MEMBER( ti_pcode_card_device::clock_in)
+void ti_pcode_card_device::clock_in(int state)
{
m_clock_count = (m_clock_count+1) & 0x03; // four pulses high, four pulses low
if (m_clock_count==0)
@@ -259,12 +260,12 @@ void ti_pcode_card_device::cruwrite(offs_t offset, uint8_t data)
m_crulatch->write_bit((offset & 0x80) >> 5 | (offset & 0x06) >> 1, data);
}
-WRITE_LINE_MEMBER(ti_pcode_card_device::pcpage_w)
+void ti_pcode_card_device::pcpage_w(int state)
{
m_selected = state;
}
-WRITE_LINE_MEMBER(ti_pcode_card_device::ekrpg_w)
+void ti_pcode_card_device::ekrpg_w(int state)
{
m_bank_select = state ? 2 : 1; // we're calling this bank 1 and bank 2
LOGMASKED(LOG_CRU, "Select rom bank %d\n", m_bank_select);