diff options
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..02796fd --- /dev/null +++ b/main.cpp | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | #include <fstream> | ||
| 2 | #include <iostream> | ||
| 3 | |||
| 4 | #include "cpu.h" | ||
| 5 | #include "infra/pipetrace.h" | ||
| 6 | #include "infra/sim.h" | ||
| 7 | |||
| 8 | int main(int argc, const char *argv[]) { | ||
| 9 | infra::pt::ptfile = &std::cout; | ||
| 10 | |||
| 11 | cpu cpu; | ||
| 12 | |||
| 13 | for (int i = 1; i < argc; ++i) { | ||
| 14 | std::ifstream fh{argv[i]}; | ||
| 15 | cpu.dram.load(fh); | ||
| 16 | } | ||
| 17 | |||
| 18 | for (unsigned int i = 0; i < 1000; ++i) | ||
| 19 | infra::sim::advance(); | ||
| 20 | |||
| 21 | return 0; | ||
| 22 | } | ||
