From 5cbb91f352460d7013c3d52aa5c54f165ad36003 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 3 Nov 2020 20:01:02 -0500 Subject: [PATCH] Fixes `COP` vector, ensures `WDM` skips a byte. --- OSBindings/Mac/Clock SignalTests/65816kromTests.swift | 3 +++ Processors/65816/Implementation/65816Implementation.hpp | 6 ++++-- Processors/65816/Implementation/65816Storage.cpp | 2 +- Processors/65816/Implementation/65816Storage.hpp | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/OSBindings/Mac/Clock SignalTests/65816kromTests.swift b/OSBindings/Mac/Clock SignalTests/65816kromTests.swift index eaefc0cb7..023dee997 100644 --- a/OSBindings/Mac/Clock SignalTests/65816kromTests.swift +++ b/OSBindings/Mac/Clock SignalTests/65816kromTests.swift @@ -52,6 +52,9 @@ class Krom65816Tests: XCTestCase { machine.setValue(0x00ff, for: .stackPointer) machine.setValue(0x34, for: .flags) + // There seems to be some Nintendo-special register at address 0x0000. + machine.setValue(0xb5, forAddress: 0x0000) + // Poke some fixed values for SNES registers to get past initial setup. machine.setValue(0x42, forAddress: 0x4210) // "RDNMI", apparently; this says: CPU version 2, vblank interrupt request. var allowNegativeError = false diff --git a/Processors/65816/Implementation/65816Implementation.hpp b/Processors/65816/Implementation/65816Implementation.hpp index 549baef4e..e308352b4 100644 --- a/Processors/65816/Implementation/65816Implementation.hpp +++ b/Processors/65816/Implementation/65816Implementation.hpp @@ -435,7 +435,7 @@ template void Processor void Processor