Skip to content

Commit

Permalink
Commit the correct fix for Issue#156.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Fosdick committed May 16, 2021
1 parent a911999 commit 51fd877
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/6502.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,19 @@ static void write_acccon_master(int val)
if (val & 4)
bank = !bank;
}
shadow_mem(val & 4);
uint8_t *shadow = ram + 0x8000;
if (val & 4) {
for (int c = 0x30; c < 0x80; c++) {
memlook[0][c] = shadow;
memlook[1][c] = ram;
}
}
else {
for (int c = 0x30; c < 0x80; c++) {
memlook[0][c] = ram;
memlook[1][c] = shadow;
}
}
RAMbank[0xC] = RAMbank[0xD] = bank;
}

Expand Down

0 comments on commit 51fd877

Please sign in to comment.