From 95356a12e955ac8d42e8bb4632075bf13021e201 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Mon, 19 Jul 2021 14:20:20 +0100 Subject: Feature: Added basic rom loading --- emulator.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'emulator.h') diff --git a/emulator.h b/emulator.h index e69de29..edffa47 100644 --- a/emulator.h +++ b/emulator.h @@ -0,0 +1,17 @@ +#ifndef _EMULATOR_H_ +#define _EMULATOR_H_ + +#include +#include + +typedef struct +{ + uint8_t is_on; + uint16_t pc; + uint8_t memory[4096]; +} Emulator; + +int emulator_load_rom(Emulator* emulator, char* rom_name); +int emulator_tick(Emulator* emulator); + +#endif -- cgit 1.4.1