Arduino gameboy cart reader software, using https://github.com/insidegadgets/GBCartRead
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
643 B
25 lines
643 B
4 years ago
|
#pragma once
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
struct cart_info {
|
||
|
int type;
|
||
|
int rom_size;
|
||
|
int ram_size;
|
||
|
};
|
||
|
|
||
|
uint8_t cart_read(const uint16_t address);
|
||
|
void cart_write(const uint16_t address, const uint8_t byte);
|
||
|
void cart_set_read(void);
|
||
|
void cart_set_write(void);
|
||
|
void cart_set_standby(void);
|
||
|
void cart_select_rom(void);
|
||
|
void cart_select_ram(void);
|
||
|
void cart_init(void);
|
||
|
void cart_off(void);
|
||
|
int cart_boot(struct cart_info *info);
|
||
|
void cart_rom_bank(struct cart_info *info, unsigned bank);
|
||
|
void cart_ram_enable(struct cart_info *info);
|
||
|
void cart_ram_disable(struct cart_info *info);
|
||
|
void cart_ram_bank(struct cart_info *info, unsigned bank);
|