Skip to content

Commit

Permalink
fixed EAPI-not-yet-ready-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
frntc committed Dec 4, 2022
1 parent d439d7d commit d69a190
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Source/Firmware/C64Side/eapi-sk64.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit d69a190

Please sign in to comment.