Gokou
26-11-2000, 19:01
Ok i have writtin a small program to make lights flash in a 'traffic light' way. Anyway to make it so u could see the lights go on and off etc i needed to add a small 1 second delay which looks like
Delay movlw .119
movwf Reg3
Here3 movlw .120
movwf Reg1
Here2 movlw .22
movwf Reg2
Here1 decfsz Reg2
goto Here1
decfsz Reg1
goto Here2
decfsz Reg3
goto Here3
return
anyways the teacher gave this out and i lost the explaination of wat each of the lines means!! Please help meh :cry:
Thanks in advance
Goks
Delay movlw .119
movwf Reg3
Here3 movlw .120
movwf Reg1
Here2 movlw .22
movwf Reg2
Here1 decfsz Reg2
goto Here1
decfsz Reg1
goto Here2
decfsz Reg3
goto Here3
return
anyways the teacher gave this out and i lost the explaination of wat each of the lines means!! Please help meh :cry:
Thanks in advance
Goks