mirror of
https://github.com/tuz358/cpu-emulator.git
synced 2025-12-18 21:14:35 +03:00
first commit
This commit is contained in:
17
include/emulator.h
Normal file
17
include/emulator.h
Normal 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();
|
||||
};
|
||||
Reference in New Issue
Block a user