v6502cpp/Cpu6502.h

46 lines
755 B
C
Raw Normal View History

/*
* File: Cpu6502.h
* Author: Christopher
*
* Created on December 12, 2013, 10:14 PM
*/
#ifndef CPU6502_H
#define CPU6502_H
#include "SegmentTypes.h"
2013-12-17 02:51:12 +00:00
#include "Trace.h"
2013-12-13 14:55:19 +00:00
class AddressBus;
class Trace;
class Common;
class Cpu6502 final {
public:
Cpu6502(AddressBus& addressBus, Trace& trace, Common& common) : addressBus(addressBus), trace(trace), common(common) {
2013-12-17 02:51:12 +00:00
#if 0
trace.dumpTransistors();
#endif
}
void setPins(const PinSettings& ps);
void clock(bool phase);
2013-12-13 15:01:38 +00:00
private:
Cpu6502(const Cpu6502&) = delete;
Cpu6502& operator=(const Cpu6502&) = delete;
void rw();
void readData();
void writeData();
2013-12-13 14:55:19 +00:00
AddressBus& addressBus;
Trace& trace;
Common& common;
};
#endif /* CPU6502_H */