Level 23: Gamepad

Task

Write a program that reads the gamepad (port 254) and stores the value in RAM[0].

Solution

Gamepad is addressed via port 0xFE (254). LDA 254 reads the buttons.

Assembler help →