2017-11-25 01:43:26 +00:00
|
|
|
//
|
|
|
|
// MSX.cpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 24/11/2017.
|
|
|
|
// Copyright © 2017 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "MSX.hpp"
|
|
|
|
|
2017-11-25 02:59:54 +00:00
|
|
|
#include "../../Processors/Z80/Z80.hpp"
|
|
|
|
|
2017-11-25 01:43:26 +00:00
|
|
|
namespace MSX {
|
|
|
|
|
|
|
|
class ConcreteMachine:
|
2017-11-25 02:59:54 +00:00
|
|
|
public CPU::Z80::BusHandler,
|
2017-11-25 01:43:26 +00:00
|
|
|
public Machine {
|
2017-11-25 02:59:54 +00:00
|
|
|
public:
|
|
|
|
ConcreteMachine():
|
|
|
|
z80_(*this) {}
|
|
|
|
|
|
|
|
private:
|
|
|
|
CPU::Z80::Processor<ConcreteMachine, false, false> z80_;
|
2017-11-25 01:43:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
using namespace MSX;
|
|
|
|
|
|
|
|
Machine *Machine::MSX() {
|
|
|
|
return new ConcreteMachine;
|
|
|
|
}
|
|
|
|
|
|
|
|
Machine::~Machine() {}
|