-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdriver.cpp
More file actions
30 lines (24 loc) · 757 Bytes
/
driver.cpp
File metadata and controls
30 lines (24 loc) · 757 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
// CMSC 411 Project - Summer 2025
// File: driver.cpp
// Desc: This is the driver for the project (ie. the file to run)
// Date: June 23, 2025
//Authors: Padina Nasiri Toussi
#include "Instruction.h"
#include "Processor.h"
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
// main
int main(){
string instructionFile = "InstructionText.txt";
string outputFile = "spreadsheet1.txt";
Processor myComputer(instructionFile, outputFile);
myComputer.loadInstructions(instructionFile);
myComputer.startProcessor();
// optional: display memory and registers
myComputer.displayMemory();
myComputer.displayRegistersInt();
myComputer.displayRegistersF();
return 0;
}