|
Game controllers |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
References Book Mapping The Atari - Revised Edition (article Memory Map)
Direction values There are nine possible decimal values (representing 45 degree incrememts) read by each joystick register (using the STICK command in Atari BASIC), depending on the position of the stick:
Decimal Binary
14 1110
| |
10 | 6 1010 | 0110
\ |/ \ |/
11-- 15 ---7 1011-- 1111 --0111
/ |\ / |\
9 | 5 1001 | 0101
| |
13 1101
15 (1111) equals stick in the upright (neutral) position. Memory address map
Paddles are also called pots, short for potentiometer. PEEK 624 returns a number between zero and 228 ($E4), increasing as the knob is turned counter-clockwise. When used to move a player or cursor (i.e., PLOT PADDLE(0),0), test your screen first. Many sets will not display locations less than 48 ($30) or greater than 208 ($D0), and in many GRAPHICS modes you will get an ERROR 141 -- cursor out of range. Paddles are paired in the controller jacks, so paddle 0 and paddle 1 both use jack one. Memory address map
Thanks to George for information below on trakball functionality!
|