aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/instructions/jumpbranch.h
blob: 762ad95a1b5c05177e8a402947eeb21eadabb020 (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);
    QVector<QString> to_strs();
private:
    bool link;
};

class InstructionJumpRegister : InstructionR {
public:
    InstructionJumpRegister(bool link, std::uint8_t rs);
    QVector<QString> to_strs();
private:
    bool link;
};

enum InstructionBranchT {

};

class InstructionBranch : InstructionI {
public:
    InstructionBranch();
    QVector<QString> to_strs();
private:
    // TODO
};

#endif // JUMPBRANCH_H