A special function is available to inspect the joysticks directly. This is JOY(0), for the first joystick,
and JOY(1) for the second. The function returns a bit-significant result which indicates the state of
the joystick switches at the last keyboard scan. As there are 50 keyboard scans per second the result
is virtually the instantaneous state of the joystick switches.
The joysticks return values as follows where KEY is the value to use in an INKEY function and
MIRROR is the equivalent keyboard key:
First Joystick
JOY(O)
KEY
Second Joystick
JOY(1)
KEY
MIRROR
Up
Bit 0
72
Up
Bit 0
48
6
Down
Bit 1
73
Down
Bit 1
49
5
Left
Bit 2
74
Left
Bit 2
50
R
Right
Bit 3
75
Right
Bit 3
51
T
Fire 2
Bit 4
76
Fire 2
Bit 4
52
G
Fire 1
Bit 5
77
Fire 1
Bit 5
53
F
Note that when the second joystick is interrogated the CPC464 cannot tell the difference between
the joystick and the indicated keyboard keys. In practice it is most unlikely that a conflict of
interpretation will exist. Indeed the keyboard could be used as a substitute for the second joystick.
When using the AMSOFT JY1, the second joystick is identical to the first, and plugs into the socket
on the side of the first joystick. No special wiring is required to allow use of the second joystick.
The 9 pin socket marked
USER PORTS (I/O)
will accept standard joysticks that work with other
personal computers, athough these do not allow a second joystick to be fitted unless a special adaptor
is used. However, you should not attempt to use one of these joysticks as a second joystick to be
plugged into the side of the AMSOFT JY1 joystick.
Software writers may consider providing an option at the start of their programs to enable the user
to select either joystick operation or cursor key operation (Where the
[COPY]
key or some other
nominated key could be used as a fire button).
7.2 Printer interfacing
The AMSTRAD CPC464 allows the connection and use of an industry standard ‘CENTRONICS’ style
interface printer.
The printer cable is simply constructed as a one-to-one connection between the
PRINTER
port and
parallel printer connector. Note that there are two less ‘fingers’ on the computer’s printed circuit
board than on the printer connector; permitting use of a standard printed circuit board edge
connector.
The actual interface details are illustrated in Appendix V.
Содержание CPC464
Страница 1: ......
Страница 32: ...or you can type 3e1 1e1 ENTER 300 2 3000x1000 Type 3e3 1e3 ENTER 3000000 3 3000x0 001 Type 3e3 1e 3 ENTER 3 ...
Страница 102: ...PRINT 10 AND 12 Results in 8 PRINT 10 AND 1000 Results in 8 again ...
Страница 118: ...TO DO DRAW THIS PAGE ...
Страница 219: ...actual value may be made to vary during the execution of a program ...
Страница 240: ...Text and WINDOW planner Mode 2 80 Columns ...
Страница 241: ......
Страница 245: ...Sound envelope Music planner sheet ...