$ED + LDA $DD00 Instruction (reading documented I/O register) + some part. Trivial, not copyrightable.