mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-19 08:31:11 +00:00
Exposed the memptr register.
This commit is contained in:
parent
a6b239698c
commit
540a03f75c
@ -40,7 +40,9 @@ enum Register {
|
||||
IYh, IYl, IY,
|
||||
R, I, Refresh,
|
||||
|
||||
IFF1, IFF2, IM
|
||||
IFF1, IFF2, IM,
|
||||
|
||||
MemPtr
|
||||
};
|
||||
|
||||
/*
|
||||
@ -1796,6 +1798,8 @@ template <class T> class Processor {
|
||||
case Register::IFF2: return iff2_ ? 1 : 0;
|
||||
case Register::IM: return (uint16_t)interrupt_mode_;
|
||||
|
||||
case Register::MemPtr: return memptr_.full;
|
||||
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
@ -1855,6 +1859,8 @@ template <class T> class Processor {
|
||||
case Register::IFF2: iff2_ = !!value; break;
|
||||
case Register::IM: interrupt_mode_ = value % 3; break;
|
||||
|
||||
case Register::MemPtr: memptr_.full = value; break;
|
||||
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user