-
Notifications
You must be signed in to change notification settings - Fork 0
/
user-interface.h
58 lines (42 loc) · 1.4 KB
/
user-interface.h
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include "ARM-file.h"
#include <unistd.h>
#include <ctime>
#include <cstdlib>
/**
*
*
* User interface helper class
*
* Main function at bottom of file.
*
* Overall todo list:
* > Implement most common instructions X
* > Implement add on bit at end of instruction (like roate shift etc.)
* > Implement Comments with ;
* > Implement PC accurately X
* > implement basic B branchs and labels X
* > implement non register memory and insturctions to access it
* > condition flags X
* > s feature on instructions so as to update flags X
* > CMP (finally) X
*
*
**/
class ARMEmulatorUserInterface{
public:
ARMEmulatorUserInterface ();
void start ();
private:
void promptUser4DebugSett ();
bool checkStr4Spaces (std::string str);
ARMFile aFile;
std::string fileName;
bool printRegsAfterEachInstruct; // defulat to false
bool resetCPSRAfterEachIter; // defulat to true (just makes life easier)
bool printInstructAsExecuted;
};
int main (){
ARMEmulatorUserInterface interface;
interface.start ();
return 0;
}