mirror of
https://github.com/cmosher01/Epple-II.git
synced 2024-06-04 23:29:29 +00:00
38 lines
609 B
C++
38 lines
609 B
C++
/*
|
|
* File: Cpu6502Helper.h
|
|
* Author: Christopher
|
|
*
|
|
* Created on December 12, 2013, 10:22 PM
|
|
*/
|
|
|
|
#ifndef CPU6502HELPER_H
|
|
#define CPU6502HELPER_H
|
|
|
|
class Cpu6502;
|
|
class Common;
|
|
|
|
class Cpu6502Helper final {
|
|
public:
|
|
|
|
Cpu6502Helper(Cpu6502& cpu, Common& common) : cpu(cpu), common(common), nextPhase(true) {
|
|
}
|
|
|
|
void powerOn();
|
|
void tick();
|
|
void reset();
|
|
|
|
private:
|
|
|
|
Cpu6502Helper(const Cpu6502Helper&) = delete;
|
|
Cpu6502Helper& operator=(const Cpu6502Helper&) = delete;
|
|
|
|
void step();
|
|
|
|
Cpu6502& cpu;
|
|
Common& common;
|
|
|
|
bool nextPhase;
|
|
};
|
|
|
|
#endif /* CPU6502HELPER_H */
|