diff options
Diffstat (limited to 'qtmips_machine/programmemory.h')
-rw-r--r-- | qtmips_machine/programmemory.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/qtmips_machine/programmemory.h b/qtmips_machine/programmemory.h deleted file mode 100644 index 14187c5..0000000 --- a/qtmips_machine/programmemory.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef PROGRAMMEMORY_H -#define PROGRAMMEMORY_H - -#include <vector> -#include "programloader.h" -#include "memory.h" -#include "instruction.h" - -class ProgramMemory { -public: - ProgramMemory(MemoryAccess *memory); - - void load(ProgramLoader *l); - Instruction *at(std::uint32_t address); // return instruction isntance for given address - -private: - MemoryAccess *memory; - Instruction *decode_r(std::uint32_t dt); - Instruction *decode_j(std::uint32_t dt, std::uint8_t opcode); - Instruction *decode_i(std::uint32_t dt, std::uint8_t opcode); -}; - -#endif // PROGRAMMEMORY_H |