diff --git a/Protocol.md b/Protocol.md new file mode 100644 index 0000000..e16d6fe --- /dev/null +++ b/Protocol.md @@ -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 diff --git a/client/client.s b/client/client.s index 03ba50d..61e14ea 100644 --- a/client/client.s +++ b/client/client.s @@ -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