; Lectura de la tecla "P" en un bucle ORG 50000 bucle: ld bc, $dffe ; Semifila "P" a "Y" in a, (c) ; Leemos el puerto bit 0, a ; Testeamos el bit 0 jr z, salir ; Si esta a 0 (pulsado) salir. jr bucle ; Si no (a 1, no pulsado) repetimos salir: ret END 50000