add prototype for mapper 01
This commit is contained in:
parent
57e0eb2fbe
commit
f495a88081
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,6 +4,7 @@
|
||||||
out/
|
out/
|
||||||
build/
|
build/
|
||||||
*.json
|
*.json
|
||||||
|
*.ini
|
||||||
|
|
||||||
*.nes
|
*.nes
|
||||||
!roms/nestest.nes
|
!roms/nestest.nes
|
||||||
|
|
|
@ -36,7 +36,7 @@ Byte Mapper001::ReadCPU(Word addr)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return PRG_ROM[addr & (0x4000 * selectedBank - 1)];
|
return PRG_ROM[(addr & (0x4000 * selectedBank - 1)) & 0x7FFF];
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0x00;
|
return 0x00;
|
||||||
|
|
2
vendor/imgui
vendored
2
vendor/imgui
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 8639a2f9f8d6d53f4c7a221579de5871051153d9
|
Subproject commit 88dfd85e9296fc03ac858f66cc6507ba443294ef
|
Loading…
Reference in a new issue