From 5fc2d300c24df84a840a24607608cbb91ffef3f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Sun, 25 Feb 2024 23:31:13 +0000 Subject: [PATCH] fix: interrupt timing issue Allows blargg's test ROM to pass. --- CHANGELOG.md | 2 +- .../blargg/interrupt_time/interrupt_time.png | Bin 0 -> 480 bytes frontends/sdl/src/test.rs | 16 ++++++++++++++++ src/cpu.rs | 10 +++++----- 4 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 frontends/sdl/res/test/blargg/interrupt_time/interrupt_time.png diff --git a/CHANGELOG.md b/CHANGELOG.md index ac870e90..e951e8fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,7 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -* +* Issue related to interrupt timing, reduce interrupt to 20 cycles instead of 24 ## [0.9.18] - 2024-01-02 diff --git a/frontends/sdl/res/test/blargg/interrupt_time/interrupt_time.png b/frontends/sdl/res/test/blargg/interrupt_time/interrupt_time.png new file mode 100644 index 0000000000000000000000000000000000000000..67638ca4b6baee0f7ecc321b2ce1a5fbf3d007ac GIT binary patch literal 480 zcmeAS@N?(olHy`uVBq!ia0vp^3xIe62asS`b-H5eaiJ{dpm#qJyP2J3Ams_0`^*<&BSS#T~u<({KLi9rl^e)Uq%939XrLvm$)T*1CZD#>92YoyB*A*!9-+IA*{nLV(bsxk(0|gAs z`7iN