diff options
author | Karel Kočí <cynerd@email.cz> | 2017-08-30 21:37:53 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-08-30 21:42:02 +0200 |
commit | 9cf92379d5fcf0076c25dae0935daab446c992cd (patch) | |
tree | dd09a2e996db1e5a8117f01bec76f1e93eaca6e1 /qtmips_machine/instructions/jumpbranch.h | |
download | qtmips-9cf92379d5fcf0076c25dae0935daab446c992cd.tar.gz qtmips-9cf92379d5fcf0076c25dae0935daab446c992cd.tar.bz2 qtmips-9cf92379d5fcf0076c25dae0935daab446c992cd.zip |
Initial commit
Adding work done so far.
Diffstat (limited to 'qtmips_machine/instructions/jumpbranch.h')
-rw-r--r-- | qtmips_machine/instructions/jumpbranch.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/qtmips_machine/instructions/jumpbranch.h b/qtmips_machine/instructions/jumpbranch.h new file mode 100644 index 0000000..b8dee5c --- /dev/null +++ b/qtmips_machine/instructions/jumpbranch.h @@ -0,0 +1,34 @@ +#ifndef JUMPBRANCH_H +#define JUMPBRANCH_H + +#include "instruction.h" + +class InstructionJump : InstructionJ { +public: + InstructionJump(bool link, std::uint32_t address); + std::vector<std::string> to_strs(); +private: + bool link; +}; + +class InstructionJumpRegister : InstructionR { +public: + InstructionJumpRegister(bool link, std::uint8_t rs); + std::vector<std::string> to_strs(); +private: + bool link; +}; + +enum InstructionBranchT { + +}; + +class InstructionBranch : InstructionI { +public: + InstructionBranch(); + std::vector<std::string> to_strs(); +private: + // TODO +}; + +#endif // JUMPBRANCH_H |