18 lines
290 B
C++
18 lines
290 B
C++
|
|
#include "emulator.h"
|
||
|
|
#include <iostream>
|
||
|
|
|
||
|
|
// I'm too lazy to write these every time
|
||
|
|
using in = Instruction;
|
||
|
|
using it = InstType;
|
||
|
|
|
||
|
|
int main() {
|
||
|
|
std::cout << "Starting VM..." << std::endl;
|
||
|
|
|
||
|
|
Memory memory({
|
||
|
|
in()
|
||
|
|
});
|
||
|
|
|
||
|
|
Emulator emulator(memory);
|
||
|
|
emulator.start();
|
||
|
|
}
|