From d69a190bfa5f742702eee1e5521a885fbe8c82ec Mon Sep 17 00:00:00 2001 From: frntc <48584231+frntc@users.noreply.github.com> Date: Sun, 4 Dec 2022 22:34:47 +0100 Subject: [PATCH] fixed EAPI-not-yet-ready-bug --- Source/Firmware/C64Side/eapi-sk64.s | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Source/Firmware/C64Side/eapi-sk64.s b/Source/Firmware/C64Side/eapi-sk64.s index 562f802b..85c71e43 100644 --- a/Source/Firmware/C64Side/eapi-sk64.s +++ b/Source/Firmware/C64Side/eapi-sk64.s @@ -22,6 +22,7 @@ ; misrepresented as being the original software. ; 3. This notice may not be removed or altered from any source distribution. +USB_READY = $de09 USB_DATA = $de0a ; Align with commands.h @@ -63,6 +64,18 @@ EAPICodeBase: .endmacro .macro receive_byte +.local testReady1 +.local testReady2 + + testReady1: + ldx USB_READY + cpx #$c0 + bne testReady1 + testReady2: + ldx USB_READY + cpx #$c0 + bne testReady2 + ldx USB_DATA .endmacro