1
0
mirror of https://github.com/pevans/erc-c.git synced 2025-01-03 00:29:38 +00:00

Prevent writes to the ROM bank

This commit is contained in:
Peter Evans 2018-01-03 14:27:55 -06:00
parent 194ec07b1f
commit 5b2c376abc

View File

@ -58,9 +58,8 @@ apple2_mem_write_bank(vm_segment *segment,
mach = (apple2 *)_mach;
switch (mach->memory_mode) {
// Whoops -- we can't write any data into ROM.
case MEMORY_BANK_ROM:
vm_segment_set(mach->rom,
address - APPLE2_BANK_OFFSET, value);
return;
case MEMORY_BANK_RAM2: