diff --git a/loaders.cpp b/loaders.cpp index 01079ba..74fadf8 100644 --- a/loaders.cpp +++ b/loaders.cpp @@ -31,7 +31,6 @@ void setBootLoader(bus *const b, const bootloader_t which) int size = 0; if (which == BL_RK05) { - /* start = offset = 01000; static uint16_t rk05_code[] = { @@ -45,8 +44,8 @@ void setBootLoader(bus *const b, const bootloader_t which) 0100376, 0005007 }; - */ +#if 0 // from https://github.com/amakukha/PyPDP11.git offset = 02000; start = 02002; @@ -76,6 +75,7 @@ void setBootLoader(bus *const b, const bootloader_t which) 0105011, // CLRB (R1) 0005007 // CLR PC }; +#endif bl = rk05_code; diff --git a/tm-11.cpp b/tm-11.cpp index df4ac93..b6ea72e 100644 --- a/tm-11.cpp +++ b/tm-11.cpp @@ -11,9 +11,6 @@ tm_11::tm_11(const std::string & file, memory *const m) : m(m) { - offset = 0; - memset(registers, 0x00, sizeof registers); - fh = fopen(file.c_str(), "rb"); } diff --git a/tm-11.h b/tm-11.h index e4b49a8..568e9b0 100644 --- a/tm-11.h +++ b/tm-11.h @@ -20,11 +20,11 @@ class memory; class tm_11 { private: - memory *const m; - uint16_t registers[6]; - uint8_t xfer_buffer[65536]; - int offset; - FILE *fh; + memory *const m { nullptr }; + uint16_t registers[6] { 0 }; + uint8_t xfer_buffer[65536]; + int offset { 0 }; + FILE *fh { nullptr }; public: tm_11(const std::string & file, memory *const m);