From 15398c34d38489bf14a100bbf01fb9fb4c7e46cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 12 Dec 2017 18:53:02 +0100 Subject: Implement branch and jump instructions --- qtmips_machine/registers.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qtmips_machine/registers.h') diff --git a/qtmips_machine/registers.h b/qtmips_machine/registers.h index 387b59d..dd7e393 100644 --- a/qtmips_machine/registers.h +++ b/qtmips_machine/registers.h @@ -14,6 +14,7 @@ public: std::uint32_t pc_inc(); // Increment program counter by four bytes std::uint32_t pc_jmp(std::int32_t offset); // Relative jump from current location in program counter void pc_abs_jmp(std::uint32_t address); // Absolute jump in program counter (write to pc) + void pc_abs_jmp_28(std::uint32_t address); // Absolute jump in current 256MB section (basically J implementation) std::uint32_t read_gp(std::uint8_t i) const; // Read general-purpose register void write_gp(std::uint8_t i, std::uint32_t value); // Write general-purpose register -- cgit v1.2.3