Initial Project Setup

This commit is contained in:
2025-01-30 14:30:19 -07:00
parent a47ca7dcbf
commit 7e0b305d17
50 changed files with 3227 additions and 0 deletions

22
include/cart.h Normal file
View File

@ -0,0 +1,22 @@
#pragma once
#include <common.h>
typedef struct {
u8 entry[4];
u8 logo[0x30];
char title[16];
u16 new_lic_code;
u8 sgb_flag;
u8 type;
u8 rom_size;
u8 ram_size;
u8 dest_code;
u8 lic_code;
u8 version;
u8 checksum;
u16 global_checksum;
} rom_header;
bool cart_load(char *cart);