@@ -76,22 +76,22 @@ public Vic20Memory(Cpu6502 cpu, Vic vic, Via6522 via1, Via6522 via2, int ramExpa
7676 private void initVicMemory (Vic vic , Via6522 via1 , Via6522 via2 , byte [] basicRom , byte [] kernalRom , byte [] charRom ) {
7777
7878 // This 1K of RAM is always present.
79- mapChipToMemory (new RamChip (), 0x0000 , 0x03FF );
79+ mapChipToMemory (new VicBusRamChip (), 0x0000 , 0x03FF );
8080
8181 // The next 3K of memory may have RAM or may be unconnected.
8282 mapChipToMemory ((ramExpansion & RAM_1 ) != 0 ? new RamChip () : new UnconnectedMemory (), 0x0400 , 0x07FF );
8383 mapChipToMemory ((ramExpansion & RAM_2 ) != 0 ? new RamChip () : new UnconnectedMemory (), 0x0800 , 0x0BFF );
8484 mapChipToMemory ((ramExpansion & RAM_3 ) != 0 ? new RamChip () : new UnconnectedMemory (), 0x0C00 , 0x0FFF );
8585
8686 // This 4K of RAM is always present.
87- mapChipToMemory (new RamChip (), 0x1000 , 0x1FFF );
87+ mapChipToMemory (new VicBusRamChip (), 0x1000 , 0x1FFF );
8888
8989 // The next three 8K blocks may have RAM or may be unconnected.
9090 mapChipToMemory ((ramExpansion & BLK_1 ) != 0 ? new RamChip () : new UnconnectedMemory (), 0x2000 , 0x3FFF );
9191 mapChipToMemory ((ramExpansion & BLK_2 ) != 0 ? new RamChip () : new UnconnectedMemory (), 0x4000 , 0x5FFF );
9292 mapChipToMemory ((ramExpansion & BLK_3 ) != 0 ? new RamChip () : new UnconnectedMemory (), 0x6000 , 0x7FFF );
9393
94- mapChipToMemory (new RomChip (), 0x8000 , 0x8FFF , charRom );
94+ mapChipToMemory (new VicBusRomChip (), 0x8000 , 0x8FFF , charRom );
9595
9696 // These are the standard locations for the VIC, VIA1 and VIA2 chips.
9797 mapChipToMemory (vic , 0x9000 , 0x900F );
0 commit comments