This commit is contained in:
folkert van heusden 2022-03-20 22:51:45 +01:00
parent 3178ec4cd2
commit be738f9652
2 changed files with 8 additions and 8 deletions

View file

@ -18,7 +18,7 @@ constexpr int n_pages = 12;
constexpr int n_pages = 16;
#endif
bus::bus() : c(nullptr), tm11(nullptr), rk05_(nullptr), rx02_(nullptr), tty_(nullptr)
bus::bus()
{
m = new memory(n_pages * 8192);

14
bus.h
View file

@ -21,15 +21,15 @@ typedef struct
class bus
{
private:
cpu *c { nullptr };
tm_11 *tm11 { nullptr };
rk05 *rk05_ { nullptr };
rx02 *rx02_ { nullptr };
tty *tty_ { nullptr };
cpu *c { nullptr };
tm_11 *tm11 { nullptr };
rk05 *rk05_ { nullptr };
rx02 *rx02_ { nullptr };
tty *tty_ { nullptr };
memory *m { nullptr };
memory *m { nullptr };
page_t pages[16];
page_t pages[16] { 0 };
uint16_t MMR2 { 0 }, MMR3 { 0 }, CPUERR { 0 }, PIR { 0 }, CSR { 0 };