1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-07-20 07:28:56 +00:00

Let the segment vm know about the machine

This commit is contained in:
Peter Evans 2018-01-02 21:12:21 -06:00
parent ee7b5f66b0
commit cb9a7d0fce

View File

@ -87,6 +87,8 @@ apple2_mem_map(apple2 *mach)
{
size_t addr;
vm_segment_set_map_machine(mach);
for (addr = APPLE2_BANK_OFFSET; addr < MOS6502_MEMSIZE; addr++) {
vm_segment_read_map(mach->memory, addr, apple2_mem_read_bank);
vm_segment_write_map(mach->memory, addr, apple2_mem_write_bank);