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.
; first digit assumed to be 0, 1, or 2. It won't fit otherwise
clrf wreg
btfsc digits, 1
addlw 0x64 ; add 100
btfsc digits, 2
addlw 0xc8 ; add 200
movwf result
; second digit
movf digits+1,w
sublw 0x30 ; subtract '0'
rlf wreg,w ; 2*d
addwf result,f
rlf wreg,w ; 4*d
rlf wreg,w ; 8*d
addwf result,f
; third digit
movf digits+2,w
sublw 0x30; subract '0'
addwf result,f