first commit

This commit is contained in:
tuz358
2018-03-03 08:54:12 +09:00
parent e2e56da666
commit 6a3b037a89
7 changed files with 176 additions and 0 deletions

17
include/emulator.h Normal file
View File

@@ -0,0 +1,17 @@
#define KB 1024
#define MB 1024*KB
#include <stdio.h>
#include <stdint.h>
#include "instructions.h"
#include "memory.h"
class Emulator{
public:
void init(size_t memorysize, FILE *bin);
void free();
void exec(uint8_t opcode);
void dump_registers();
uint8_t read_next_opcode();
uint32_t get_eip();
};