started opcodes

This commit is contained in:
Lauchmelder 2021-10-21 19:24:53 +02:00
parent 4b22287ad0
commit 458500bd59
8 changed files with 240 additions and 5 deletions

View file

@ -40,10 +40,8 @@ struct Cartridge* createCartridge(struct Bus* parent, const char* filepath)
exit(1);
}
// Open ROM
FILE* fp = fopen(filepath, "rb");
// readCartridge header
struct INES_Header header;
fread(&header, sizeof(header), 1, fp);