Merge pull request #726 from negativeExponent/patch-1

unrom512.cpp: Expand support for PRG ROM size upto 4M
This commit is contained in:
thor2016 2024-04-06 10:07:36 -04:00 committed by GitHub
commit e751431099
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -55,9 +55,9 @@ static void UNROM512_Sync() {
chip = !flash_id_mode ? FLASH_CHIP : CFI_CHIP;
else
chip = ROM_CHIP;
setprg16r(chip, 0x8000, latche & 0b11111);
setprg16r(chip, 0x8000, latche);
setprg16r(chip, 0xc000, ~0);
setchr8((latche >> 5) & 0b11);
setchr8(latche >> 5);
setmirror(MI_0 + ((latche >> 7) & 1));
}