blob: ed354b47794cf1668be66ce27793d8cc599dcdaa (
plain) (
blame)
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
35
|
#pragma once
#include <stdint.h>
#include <string>
#include "utils.hpp"
#include "disassemble.hpp"
enum class InstructionType
{
NUL,
ADD,
ADD_SHIFTED_REG,
SUB,
MOV,
MOVZ,
RET,
NOP
};
class Instruction
{
public:
Instruction(uint8_t* hex, uint32_t offset, uint32_t pos);
uint8_t bits[33];
uint32_t offset;
uint32_t pos;
uint32_t addr;
InstructionType type;
std::string string;
uint32_t hex;
};
#include "instructionhandler.hpp"
|