#pragma once #include 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);