This commit is contained in:
Joshua Bell 2018-10-28 22:35:38 -07:00
parent 684b82ca56
commit 9857d96313
2 changed files with 20 additions and 2 deletions

18
Protocol.md Normal file
View File

@ -0,0 +1,18 @@
Client sends commands:
* Keyboard
* $00 _keystate_ >=128 indicates a key is down, else no key down
* Buttons/Apple Keys
* $10 _BUTN0_ >=128 indicates button0 is down, else button0 up
* $11 _BUTN0_ >=128 indicates button1 is down, else button1 up
* Paddles/Joystick
* $20 _PDL0_ Paddle 0/Joystick X-axis state, 0...255
* $21 _PDL1_ Paddle 1/Joystick Y-axis state, 0...255
* Mouse - _TBD_
* $30 _MOUSEXLO_ _MOUSEXHI_ mouse x pos 0...65535
* $31 _MOUSEYLO_ _MOUSEYHI_ mouse x pos 0...65535
* $32 _MOUSEBTN_ mouse button state
* Screen
* $80 please send screen; client waits for 8192 byte buffer

View File

@ -25,10 +25,10 @@ PAGESIZE := $20 ; Size of hi-res screen in pages
;;; ROM routines
;;;---------------------------------------------------------
PREAD := $FB1E ; Monitor paddle reading routine, call
PREAD := $FB1E ; Monitor paddle reading routine, call
; with paddle # in X, returns value in Y
HCLR := $F3F2 ; Clear current hires screen to black
HCLR := $F3F2 ; Clear current hires screen to black
;;;---------------------------------------------------------
;;; Other