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:
parent
194ec07b1f
commit
5b2c376abc
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user