Software Tips
-
; This routine multiplies W by tmp (8x8). Uses
-
; temporary register CntDwn and stores 16bit result
-
; in ACCH:ACCL.
-
Mult clrf ACCL
-
clrf ACCH
-
clrf CntDown
-
bsf CntDown,3 ;CntDown -> 8
-
bcf STATUS,C
-
MSum rrf tmp,F
-
btfsc STATUS,C
-
addwf ACCH,F
-
rrf ACCH,F
-
rrf ACCL,F
-
decfsz CntDown,F
-
goto MSum
-
return
Previous slide | Next slide | Back to first slide | View graphic version |