From 2b5037991529cd74e623b897b894c94e7532a0f1 Mon Sep 17 00:00:00 2001 From: Ilari Liusvaara Date: Mon, 30 Aug 2010 21:05:05 +0300 Subject: [PATCH] Show KEYEDGE timing if its incorrect --- Changelog.utf8 | 1 + org/jpc/emulator/peripheral/Keyboard.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.utf8 b/Changelog.utf8 index 353881d..e6bdb1f 100644 --- a/Changelog.utf8 +++ b/Changelog.utf8 @@ -53,6 +53,7 @@ Changes since JPC-RR Release 10.5: - Fix loadstate from Lua not to crash the emulator. - Merge r10 maint fixes. - Fix some save/movie handling bugs in Lua. +- Show what keyedge timing is if its incorrect (makes hexing easier). Changes since JPC-RR Release 10.16: =================================== diff --git a/org/jpc/emulator/peripheral/Keyboard.java b/org/jpc/emulator/peripheral/Keyboard.java index f265320..bfb9702 100644 --- a/org/jpc/emulator/peripheral/Keyboard.java +++ b/org/jpc/emulator/peripheral/Keyboard.java @@ -1082,7 +1082,7 @@ public class Keyboard extends AbstractHardwareComponent implements IOPortCapable if(timeStamp < keyboardTimeBound && level <= EventRecorder.EVENT_STATE_EFFECT) throw new IOException("Invalid KEYEDGE event"); if(args.length != 2 || timeStamp % CLOCKING_MODULO != 0) - throw new IOException("Invalid KEYEDGE event"); + throw new IOException("Invalid KEYEDGE event (" + (timeStamp % CLOCKING_MODULO) + ")"); int scancode; try { scancode = Integer.parseInt(args[1]); -- 2.11.4.GIT