This does the same thing in assembly
Code:asm movlw _bOutDataPos ; read the index to W addwf _bOutData,w ; add base of the array and keep in W movwf FSR ; move W to INDirect File register movlw _cControlCharOut movwf INDF incf FSR ; move to the next location of array clrw movwf INDF incf FSR ; move to the next location of array movlw _aAddress movwf INDF incf FSR ; move to the next location of array movlw _cAction movwf INDF incf FSR ; move to the next location of array endasm




Bookmarks