ORG 0000H
MOV A,#00H
LOOP1: PUSH ACC
LOOP: MOV A,P2
CJNE A,#0FFH,LOOP1
POP ACC
MOV P1,A
ACALL DELAY
CPL A
SJMP LOOP
DELAY: MOV R7,#00H
DLY: MOV R6,0FFH
DJNZ R6,$
DJNZ R7,DLY
RET
END
Dept.of Engineering Education (Electronic Engineering) @King Mongkut's Ladkrabang (KMITL), BKK Thailand Advanced Flight Student (FS3) in International Virtual Aviation Organisation™ (IVAO)