mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 03:32:32 +00:00
Noodled around with initial state.
This commit is contained in:
parent
6d22f6fcd5
commit
35f535b9a3
@ -14,6 +14,9 @@
|
||||
namespace CPU {
|
||||
|
||||
union RegisterPair {
|
||||
RegisterPair(uint16_t v) : full(v) {}
|
||||
RegisterPair() {}
|
||||
|
||||
uint16_t full;
|
||||
struct {
|
||||
uint8_t low, high;
|
||||
|
@ -638,7 +638,16 @@ template <class T> class Processor: public MicroOpScheduler<MicroOp> {
|
||||
}
|
||||
|
||||
public:
|
||||
Processor() : MicroOpScheduler(), is_halted_(false) {
|
||||
Processor() : MicroOpScheduler(),
|
||||
is_halted_(false),
|
||||
sp_(0xffff),
|
||||
pc_(0x0000),
|
||||
a_(0xff),
|
||||
interrupt_mode_(0),
|
||||
iff1_(false),
|
||||
iff2_(false) {
|
||||
set_flags(0xff);
|
||||
|
||||
assemble_base_page(base_page_, hl_, false, cb_page_);
|
||||
assemble_base_page(dd_page_, ix_, true, ddcb_page_);
|
||||
assemble_base_page(fd_page_, iy_, true, fdcb_page_);
|
||||
|
Loading…
Reference in New Issue
Block a user