mirror of
https://github.com/a2stuff/vnIIc.git
synced 2024-09-27 15:55:41 +00:00
snapshot
This commit is contained in:
parent
684b82ca56
commit
9857d96313
18
Protocol.md
Normal file
18
Protocol.md
Normal 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
|
@ -25,10 +25,10 @@ PAGESIZE := $20 ; Size of hi-res screen in pages
|
|||||||
;;; ROM routines
|
;;; ROM routines
|
||||||
;;;---------------------------------------------------------
|
;;;---------------------------------------------------------
|
||||||
|
|
||||||
PREAD := $FB1E ; Monitor paddle reading routine, call
|
PREAD := $FB1E ; Monitor paddle reading routine, call
|
||||||
; with paddle # in X, returns value in Y
|
; 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
|
;;; Other
|
||||||
|
Loading…
Reference in New Issue
Block a user