Update waitstates for 256k work ram

Former-commit-id: f5680c90e4ab4a9b29899cd5e0fe316d8227fc24
This commit is contained in:
= 2019-07-03 11:30:00 +03:00
parent c9df623d36
commit 28743702a1

View file

@ -82,7 +82,10 @@ impl SysBus {
pub fn new(bios_rom: Vec<u8>, gamepak: Cartridge) -> SysBus { pub fn new(bios_rom: Vec<u8>, gamepak: Cartridge) -> SysBus {
SysBus { SysBus {
bios: BoxedMemory::new(bios_rom.into_boxed_slice()), bios: BoxedMemory::new(bios_rom.into_boxed_slice()),
onboard_work_ram: BoxedMemory::new(vec![0; WORK_RAM_SIZE].into_boxed_slice()), onboard_work_ram: BoxedMemory::new_with_waitstate(
vec![0; WORK_RAM_SIZE].into_boxed_slice(),
WaitState::new(3, 3, 6),
),
internal_work_ram: BoxedMemory::new(vec![0; INTERNAL_RAM].into_boxed_slice()), internal_work_ram: BoxedMemory::new(vec![0; INTERNAL_RAM].into_boxed_slice()),
ioregs: BoxedMemory::new(vec![0; 1024].into_boxed_slice()), ioregs: BoxedMemory::new(vec![0; 1024].into_boxed_slice()),
palette_ram: BoxedMemory::new_with_waitstate( palette_ram: BoxedMemory::new_with_waitstate(