gb6/src/dmg.h

26 lines
473 B
C
Raw Normal View History

2019-04-16 06:25:00 +00:00
#ifndef _DMG_H
#define _DMG_H
#include "cpu.h"
#include "rom.h"
2022-06-21 00:09:29 +00:00
#include "lcd.h"
2019-04-16 06:25:00 +00:00
struct dmg {
struct cpu *cpu;
struct rom *rom;
struct lcd *lcd;
2019-04-16 06:25:00 +00:00
u8 main_ram[0x2000];
u8 video_ram[0x2000];
u8 zero_page[0x80];
2019-04-16 06:25:00 +00:00
};
2019-10-22 06:30:19 +00:00
void dmg_new(struct dmg *dmg, struct cpu *cpu, struct rom *rom, struct lcd *lcd);
2019-04-16 06:25:00 +00:00
2019-10-22 06:30:19 +00:00
// why did i make these void *
2019-04-16 06:25:00 +00:00
u8 dmg_read(void *dmg, u16 address);
void dmg_write(void *dmg, u16 address, u8 data);
2019-10-22 06:30:19 +00:00
void dmg_step(void *dmg);
2019-04-16 06:25:00 +00:00
#endif