cleanup
This commit is contained in:
parent
3178ec4cd2
commit
be738f9652
2 changed files with 8 additions and 8 deletions
2
bus.cpp
2
bus.cpp
|
@ -18,7 +18,7 @@ constexpr int n_pages = 12;
|
||||||
constexpr int n_pages = 16;
|
constexpr int n_pages = 16;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bus::bus() : c(nullptr), tm11(nullptr), rk05_(nullptr), rx02_(nullptr), tty_(nullptr)
|
bus::bus()
|
||||||
{
|
{
|
||||||
m = new memory(n_pages * 8192);
|
m = new memory(n_pages * 8192);
|
||||||
|
|
||||||
|
|
14
bus.h
14
bus.h
|
@ -21,15 +21,15 @@ typedef struct
|
||||||
class bus
|
class bus
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
cpu *c { nullptr };
|
cpu *c { nullptr };
|
||||||
tm_11 *tm11 { nullptr };
|
tm_11 *tm11 { nullptr };
|
||||||
rk05 *rk05_ { nullptr };
|
rk05 *rk05_ { nullptr };
|
||||||
rx02 *rx02_ { nullptr };
|
rx02 *rx02_ { nullptr };
|
||||||
tty *tty_ { 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 };
|
uint16_t MMR2 { 0 }, MMR3 { 0 }, CPUERR { 0 }, PIR { 0 }, CSR { 0 };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue