blob: 9ce29e054dac261bdfcc960b93fcd9c54309de5d (
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
|
#ifndef SHIFT_H
#define SHIFT_H
#include "instruction.h"
enum InstructionShiftT {
IST_LL, // Left logical
IST_RL, // Right logical
IST_RA // Right arithmetic
};
class InstructionShift : public InstructionR {
public:
InstructionShift(enum InstructionShiftT type, std::uint8_t rt, std::uint8_t rd, std::uint8_t sa);
std::vector<std::string> to_strs();
private:
enum InstructionShiftT type;
};
class InstructionShiftVariable : public InstructionR {
public:
InstructionShiftVariable(enum InstructionShiftT type, std::uint8_t rs, std::uint8_t rt, std::uint8_t rd);
std::vector<std::string> to_strs();
private:
enum InstructionShiftT type;
};
#endif // SHIFT_H
|