=_NextPart_000_0047_01CA3C5F.D4A519F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi All
Google is NOT my friend here, or maybe I'm not searching correct - gets = gazillions of hits on examples which I don't understand
I have the below routine that work 100%, but I want to add a "LOOP" to = execute the FLASH routine i,e 5 times and then the FLASH_ODD routine 7 = times before calling "AJMP FLASH" again to start from the beginning. = Below is just a scale down version of my code, but If I can get this = resolved, I will be able to implement it in my code
#################################################
ORG 00H ; Starts Here FLASH: CPL P1.0 ; Turn on/off the LED P1.0 ACALL DELAY ; call one second delay AJMP FLASH_ODD ; jump to FLASH_ODD
FLASH_ODD: CPL P1.3 ; Turn on/off the LED P1.3 ACALL DELAY ; call one second delay AJMP FLASH ; jump to FLASH
DELAY: MOV R1,#0FFH REPEAT: MOV R2,#0FFH DJNZ R2,$ DJNZ R1,REPEAT RET END=20
#################################################
Any suggestions will be greatly appreciated