START: MOV A,#01H MOV R2,#07H LOOP: MOV P0,A RL A INC A DJNZ R2,LOOP AJMP START END