; Menú de selección de proceso. Bucle principal SMJP MENU MENU2: JNB TI,$ CLR TI MOV A,#NACK MOV SBUF,A MENU:MOV R0,#0;Inicialización de los registros MOV R1,#0;R0, R1 y R4. MOV R4, #pulsos;Numero de pulsos PROG\. JNB RI, $; Espera recibir indicador del proceso a CLR RI; seguir. MOV A,SBUF CJNE A,#'B',S1 MOV A,#ACK JNB TI,$ CLR TI MOV SBUF,A SJMP BLANCO S1: CJNE A,#'L',S2 MOV A,#ACK JNB TI, $ CLR TI MOV SBUF, A SJMP LECTURA S2: CJNE SJMP GRABAR