From e9347168e61c071e04edfb397d050652ce0780cf Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 28 Jul 2023 10:53:02 -0400 Subject: [PATCH 1/3] Don't alter the data bank upon BRK, COP, IRQ, etc. --- Processors/65816/Implementation/65816Implementation.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Processors/65816/Implementation/65816Implementation.hpp b/Processors/65816/Implementation/65816Implementation.hpp index bbb9dcedc..230d3723a 100644 --- a/Processors/65816/Implementation/65816Implementation.hpp +++ b/Processors/65816/Implementation/65816Implementation.hpp @@ -441,7 +441,9 @@ template void Processor Date: Fri, 28 Jul 2023 13:39:21 -0400 Subject: [PATCH 2/3] Correct wrapping behaviour for (d, x). --- .../Implementation/65816Implementation.hpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Processors/65816/Implementation/65816Implementation.hpp b/Processors/65816/Implementation/65816Implementation.hpp index 230d3723a..c11705c1b 100644 --- a/Processors/65816/Implementation/65816Implementation.hpp +++ b/Processors/65816/Implementation/65816Implementation.hpp @@ -359,15 +359,20 @@ template void Processor Date: Fri, 28 Jul 2023 13:58:01 -0400 Subject: [PATCH 3/3] Fix seed per test. --- OSBindings/Mac/Clock SignalTests/65816ComparativeTests.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OSBindings/Mac/Clock SignalTests/65816ComparativeTests.mm b/OSBindings/Mac/Clock SignalTests/65816ComparativeTests.mm index c342889a6..6017f35ac 100644 --- a/OSBindings/Mac/Clock SignalTests/65816ComparativeTests.mm +++ b/OSBindings/Mac/Clock SignalTests/65816ComparativeTests.mm @@ -155,14 +155,14 @@ void print_ram(FILE *file, const std::unordered_map &data) { - (void)generate { BusHandler handler; - // Make tests repeatable, at least for any given instance of - // the runtime. - srand(65816); - NSString *const tempDir = NSTemporaryDirectory(); NSLog(@"Outputting to %@", tempDir); for(int operation = 0; operation < 512; operation++) { + // Make tests repeatable, at least for any given instance of + // the runtime. + srand(65816 + operation); + const bool is_emulated = operation & 256; const uint8_t opcode = operation & 255;