in a,(3) bit 3,a jr z,on_was_pressed http://www.ticalc.org/pub/text/calcinfo/82-ports.txt > How do you detect if ON was pressed? I know about the flag, I mean how you > do it directly from the ports.