Skip to content

Commit

Permalink
fix wrong parsing of cartridge header
Browse files Browse the repository at this point in the history
  • Loading branch information
mpostaire committed Jul 29, 2024
1 parent 7259b49 commit 467ec16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define GBC_CURRENT_WRAM_BANK(mmu) (((mmu)->io_registers[IO_SVBK] & 0x07) == 0 ? 1 : ((mmu)->io_registers[IO_SVBK] & 0x07))

int parse_header_mbc_byte(byte_t mbc_byte, byte_t *mbc_type, byte_t *has_eram, byte_t *has_battery, byte_t *has_rtc, byte_t *has_rumble) {
byte_t tmp_mbc_type, tmp_has_eram, tmp_has_battery, tmp_has_rtc, tmp_has_rumble;
byte_t tmp_mbc_type = 0, tmp_has_eram = 0, tmp_has_battery = 0, tmp_has_rtc = 0, tmp_has_rumble = 0;

switch (mbc_byte) {
case 0x00:
Expand Down

0 comments on commit 467ec16

Please sign in to comment.