summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/hmcs40/hmcs40.h
diff options
context:
space:
mode:
author Vas Crabb <cuavas@users.noreply.github.com>2023-06-17 01:10:05 +1000
committer GitHub <noreply@github.com>2023-06-17 01:10:05 +1000
commite9c1f4a42a6758a6fb75403e28c7dc6cf869081c (patch)
tree8e0b6d960bed4baec2408c9ab950218592ef33ec /src/devices/cpu/hmcs40/hmcs40.h
parentc1ceb6e016763537c5109cc76fe5d1b4ae72fdb3 (diff)
emu/devcb.h: Eliminated the need to call resolve() on callbacks. (#11333)
Read callbacks now need a default return value supplied at construction. Replaced isnull() with isunset() which tells you if the callback wasn't configured rather than whether it isn't safe to call. Enabled validation of device callbacks (it seems it was disabled at some point, probably accidentally). Device callbacks and object finders now implement the same interface for resolution.
Diffstat (limited to 'src/devices/cpu/hmcs40/hmcs40.h')
-rw-r--r--src/devices/cpu/hmcs40/hmcs40.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/cpu/hmcs40/hmcs40.h b/src/devices/cpu/hmcs40/hmcs40.h
index 0738eab209a..eb4592653db 100644
--- a/src/devices/cpu/hmcs40/hmcs40.h
+++ b/src/devices/cpu/hmcs40/hmcs40.h
@@ -137,15 +137,15 @@ protected:
int m_icount;
int m_state_count;
- int m_pcwidth; // Program Counter bit-width
- int m_prgwidth;
- int m_datawidth;
+ int const m_pcwidth; // Program Counter bit-width
+ int const m_prgwidth;
+ int const m_datawidth;
+ int const m_family; // MCU family (42-47)
+ u16 const m_polarity; // i/o polarity (pmos vs cmos)
+ int const m_stack_levels; // number of callstack levels
int m_pcmask;
int m_prgmask;
int m_datamask;
- int m_family; // MCU family (42-47)
- u16 m_polarity; // i/o polarity (pmos vs cmos)
- int m_stack_levels; // number of callstack levels
u16 m_stack[4]; // max 4
u16 m_op; // current opcode
u16 m_prev_op;