controllers

controllers

Programming the Atari Touch Tablet and Light Pen

How the CX77 Touch Tablet and the CX70/CX75 light pens talk to an Atari, and how to read them from BASIC: paddle values, buttons, PENH/PENV at 564/565, calibration, and today's emulation.

Reading Joysticks, Paddles and Fire Buttons

How the Atari reads its controller ports: STICK, STRIG, PADDLE and PTRIG in BASIC, the bit patterns behind the numbers, shadow and hardware registers, and fast decoding in BASIC and assembly.