Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
;put 345 into Acc
movlw low .345
movwf AccLo
movlw high .345
movwf AccHi
;now multiply by 8
bcf STATUS,C ;gets shifted into bit 0 of AccLo
rlf AccLo,f
rlf AccHi,f ;*2
bcf STATUS,C
rlf AccLo,f
rlf AccHi,f ;*4
bcf STATUS,C
rlf AccLo,f
rlf AccHi,f ;*8
;AccHi/AccLo now contain 2760.
Pommie said:To divide by 8 you need to use RRF.
Mike.