; Good for accessing individual elements.
cblock (end of SFR)
pulse, pulse2, pulse3, pulse4, pulse5, pulse6
endc
; Good for bulk access.
; [register]:[byte count]
cblock (end of SFR)
pulse:6
endc
movlw pulse ; Intitialize Pulse()
movwf FSR ; Pulse = Pulse(0)
Process --- ;other work doing here
---
---
---
---
---
---
movwf Width ;contains new data
Update incf FSR,F ; Pulse = (n + 1)
movf Width,W ;
movwf INDF ; Pulse(n) = Width
goto Process
BusinesssEnd:
; Where we access the individual elements directly.
movf pulse, w ; Push pulse to PortB.
movwf PortB
movf pulse2, w ; Push pulse2 to UART.
movwf TXreg
movf pulse3, w ; Push pulse3 to ...
movwf ....
return