From 28743702a101fd89ab9224ae447ab51a01f7cce7 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 3 Jul 2019 11:30:00 +0300 Subject: [PATCH] Update waitstates for 256k work ram Former-commit-id: f5680c90e4ab4a9b29899cd5e0fe316d8227fc24 --- src/sysbus.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sysbus.rs b/src/sysbus.rs index ba31c04..13007ec 100644 --- a/src/sysbus.rs +++ b/src/sysbus.rs @@ -82,7 +82,10 @@ impl SysBus { pub fn new(bios_rom: Vec, gamepak: Cartridge) -> SysBus { SysBus { 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()), ioregs: BoxedMemory::new(vec![0; 1024].into_boxed_slice()), palette_ram: BoxedMemory::new_with_waitstate(