2016-03-30 20:07:55 +00:00
|
|
|
#ifndef memory_h
|
|
|
|
#define memory_h
|
2018-05-27 16:30:23 +00:00
|
|
|
#include "gb_struct_def.h"
|
|
|
|
#include <stdint.h>
|
2016-03-30 20:07:55 +00:00
|
|
|
|
2016-06-18 17:29:11 +00:00
|
|
|
uint8_t GB_read_memory(GB_gameboy_t *gb, uint16_t addr);
|
|
|
|
void GB_write_memory(GB_gameboy_t *gb, uint16_t addr, uint8_t value);
|
2017-04-17 17:16:17 +00:00
|
|
|
#ifdef GB_INTERNAL
|
2016-08-03 20:31:10 +00:00
|
|
|
void GB_dma_run(GB_gameboy_t *gb);
|
2016-06-18 17:29:11 +00:00
|
|
|
void GB_hdma_run(GB_gameboy_t *gb);
|
2018-03-27 12:46:00 +00:00
|
|
|
void GB_trigger_oam_bug(GB_gameboy_t *gb, uint16_t address);
|
|
|
|
void GB_trigger_oam_bug_read_increase(GB_gameboy_t *gb, uint16_t address);
|
2017-04-17 17:16:17 +00:00
|
|
|
#endif
|
2016-03-30 20:07:55 +00:00
|
|
|
|
|
|
|
#endif /* memory_h */
|