aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/instructions/jumpbranch.h
blob: b8dee5c97952c7fc169c41023b110915804e237f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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