


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



movlw M_COUNT_INIT ; movwf M_COUNT ;Re-initialize M_COUNT decfsz H_COUNT,1 ;Count down until H_COUNT Reaches Zero goto MainLoop ; if not zero, goto top of loop call DoSomething movlw H_COUNT_INIT movwf H_COUNT goto MainLoop
DoSomething incf LED_CPY,1 ;increment LED Copy movf LED_CPY, movwf PORTD ;Write out to PortD ( where RD[2:0] drive LEDs) return
end