
<b>
 ORG 0x00
RESET1: LJMP MAIN

        ORG 0x30
MAIN:   MOV A, #0               ; Use A as your variable
        MOV R0, #10             ; Set R0 to use as your loop, loop 9 times

COUNTDOWNLOOP:                  ; Beginning of your loop
        MOV P0, A               ; Outputs on Port 0 the value of Acc
        ADD A, #1               ; Adds 1 to Acc for next loop

timedelay:                      ; Time delay loop(138ms@11.059mhz)
        MOV R1, #50             ; These two values set your time
        MOV R2, #250            ; delay, increase them for more delay
loop:
        djnz r1, loop
        djnz r2, loop
        DJNZ R0, COUNTDOWNLOOP  ; Subtract 1 from R0, and loop 
                                ; if its not 0
                                ; Once zero, the program passes
                                ; this line and ends.
HERE:   SJMP HERE

        END

:03000000020030CB
:100030007400780AF580240179327AFAD9FEDAFC64
:04004000D8F280FE74
:00000001FF
</b>
