mirror of
https://github.com/punesemu/puNES.git
synced 2024-06-16 11:17:54 -04:00
[FDS] Fixed initialization of fds.drive.mirroring (#387).
This commit is contained in:
parent
b6dc62f1e5
commit
6ce2ceeaba
|
@ -43,6 +43,7 @@ void map_init_FDS(void) {
|
|||
fds.auto_insert.rE445.in_run = FALSE;
|
||||
fds.auto_insert.in_game = FALSE;
|
||||
|
||||
fds.drive.mirroring = 0x08;
|
||||
fds.drive.transfer_reset = 0x02;
|
||||
fds.drive.io_mode = 0x04;
|
||||
fds.drive.drive_ready = 0x40;
|
||||
|
@ -77,6 +78,11 @@ void extcl_after_mapper_init_FDS(void) {
|
|||
memmap_wram_8k(0, MMCPU(0xA000), 2);
|
||||
memmap_wram_8k(0, MMCPU(0xC000), 3);
|
||||
memmap_prgrom_8k(0, MMCPU(0xE000), 0);
|
||||
if (fds.drive.mirroring) {
|
||||
mirroring_H(0);
|
||||
} else {
|
||||
mirroring_V(0);
|
||||
}
|
||||
}
|
||||
BYTE extcl_cpu_rd_mem_FDS(BYTE nidx, WORD address, UNUSED(BYTE openbus)) {
|
||||
switch (address) {
|
||||
|
|
Loading…
Reference in a new issue