add prototype for mapper 01

This commit is contained in:
Robert 2023-01-30 15:46:43 +01:00
parent 57e0eb2fbe
commit f495a88081
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -4,6 +4,7 @@
out/
build/
*.json
*.ini
*.nes
!roms/nestest.nes

View file

@ -36,7 +36,7 @@ Byte Mapper001::ReadCPU(Word addr)
break;
}
return PRG_ROM[addr & (0x4000 * selectedBank - 1)];
return PRG_ROM[(addr & (0x4000 * selectedBank - 1)) & 0x7FFF];
}
return 0x00;

2
vendor/imgui vendored

@ -1 +1 @@
Subproject commit 8639a2f9f8d6d53f4c7a221579de5871051153d9
Subproject commit 88dfd85e9296fc03ac858f66cc6507ba443294ef