-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlc3.h
More file actions
45 lines (34 loc) · 773 Bytes
/
Copy pathlc3.h
File metadata and controls
45 lines (34 loc) · 773 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
44
45
#ifndef LC3_H
#define LC3_H
#include <QMainWindow>
#include "LC3Cycle.h"
#include "ui_lc3.h"
#include "lc3memory.h"
#include "Files.h"
#include "assembler.h"
extern LC3Registers registers;
QT_BEGIN_NAMESPACE
namespace Ui { class lc3; }
QT_END_NAMESPACE
extern int index;
class lc3 : public QMainWindow
{
Q_OBJECT
public:
lc3(QWidget *parent = nullptr);
~lc3();
QVector<QLabel*> memoryLabels;
int sc=1;
void updateRegisters();
void updateMemory(int index);
void scrollToUpdatedMemory();
void memoryFill();
private slots:
void on_RUN_clicked();
void on_Upload_code_clicked();
void on_pushButtonStartasm_clicked();
private:
Ui::lc3 *ui;
};
bool readFromFile(LC3Memory&, uint16_t, const QString&);
#endif // LC3_H