The software side of using the joystick jacks as I/O lines: PACTL and the direction register, reading outputs back, what the OS does to the port, single bits in BASIC, and fast bit-banged output.
Read and write cassette data files from BASIC, control the recorder's motor, and use the tape's second (audio) track for narration that plays during loading or in sync with your program.