first commit

This commit is contained in:
2025-12-01 18:23:49 +01:00
commit 965e10f6b2
20 changed files with 1579 additions and 0 deletions

27
input.s Normal file
View File

@@ -0,0 +1,27 @@
; Input Module
; ---------------------------------------------------------------------------
INCDIR "c:/Users/capitano/Documents/giochino/"
INCLUDE "custom.i"
; XDEF ReadInput
; XDEF LastKey
; SECTION Code,CODE_C
; ReadInput
; Returns: d0 = Raw Keycode (or 0 if no key)
; Preserves: d1-a6
ReadInput:
moveq #0,d0 ; Default: no key
; Simple approach: just return 0 for now (disable keyboard)
; This prevents crashes from keyboard input
rts
; TODO: Implement proper keyboard reading later
; The keyboard reading via CIA is complex and error-prone
; SECTION Data,DATA_C
LastKey: dc.b 0