;flash3.asm, input/output

#include 8051.H
         .org 0000H

main    jb    P1.0,ON  ;P1.0 = ? 
        setb  P1.1     ;P1.1 = 1
        sjmp  OFF
ON      clr   P1.1     ;P1.1 = 0
OFF     sjmp  main
        .end

