bpp/include/bus.hpp
2021-07-30 13:44:51 +02:00

25 lines
397 B
C++

#pragma once
/**
* A simple "system bus" which allows for interconnection between
* components, saving us passing pointers or references to each
* other every function call.
*/
class CPU;
class Display;
class Audio;
class Memory;
class Input;
class Bus {
public:
Bus();
~Bus();
Memory* memory;
CPU* cpu;
Display* display;
Audio* audio;
Input* input;
};