SameBoy/Core/memory.h

18 lines
572 B
C
Raw Normal View History

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
2019-08-16 14:38:43 +00:00
typedef uint8_t (*GB_read_memory_callback_t)(GB_gameboy_t *gb, uint16_t addr, uint8_t data);
void GB_set_read_memory_callback(GB_gameboy_t *gb, GB_read_memory_callback_t callback);
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);
#ifdef GB_INTERNAL
void GB_dma_run(GB_gameboy_t *gb);
void GB_hdma_run(GB_gameboy_t *gb);
void GB_trigger_oam_bug(GB_gameboy_t *gb, uint16_t address);
#endif
2016-03-30 20:07:55 +00:00
#endif /* memory_h */