-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlabel.h
More file actions
43 lines (28 loc) · 766 Bytes
/
Copy pathlabel.h
File metadata and controls
43 lines (28 loc) · 766 Bytes
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
36
37
38
39
40
41
42
43
//
// Created by michal on 21.09.17.
//
#ifndef PROJECT_LABEL_H
#define PROJECT_LABEL_H
#include <cstdint>
class Label {
public:
Label(uint32_t jump_address, int call_address) : jump_address(jump_address), call_address(call_address) {}
void set_if_jump(bool value);
void set_if_function(bool value);
void set_if_thread(bool value);
bool get_if_jump();
bool get_if_function();
uint32_t get_jump_address();
int get_call_address();
void set_thread_id_reg();
int get_thread_id_reg();
bool get_if_thread();
private:
bool if_jump = false;
bool if_function = false;
bool if_thread = false;
uint32_t jump_address = 0;
int call_address = 0;
int thread_id_reg = 0;
};
#endif //PROJECT_LABEL_H