about summary refs log blame commit diff
path: root/emulator.h
blob: edffa47ceb61791f07147ed54cc156c31c538350 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                          
#ifndef _EMULATOR_H_
#define _EMULATOR_H_

#include <stdio.h>
#include  <sys/stat.h>

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