Joystick position: Difference between revisions

→‎{{Header|ZX Spectrum Basic}}: i'll get this right in a minute - it'd be so much easier if the spectrum's BIN function was reversible
No edit summary
(→‎{{Header|ZX Spectrum Basic}}: i'll get this right in a minute - it'd be so much easier if the spectrum's BIN function was reversible)
Line 722:
 
=={{Header|ZX Spectrum Basic}}==
Assuming a Kempston joystick interface, fairly standard at the time. Rewriting for the Sinclair Interface 2 involves changing line 80 to 80 LET t=IN 61438, replacing all numbers in the next five lines with 192191-said number and reversing each pair of directions.
 
<lang zxbasic>10 DIM o$(5)
77

edits