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.
BCD_to_Bin
movwf Test ; save Test value |B0
swapf Test,W ; swap nybbles (into W) |B0
andlw h'0F' ; mask swapped tens digit |B0
movwf Temp ; put it in a work file |B0
addwf Temp,W ; W = 2 * tens |B0
addwf Temp,F ; F = 3 * tens (C = 0) |B0
rlf Temp,W ; W = 6 * tens |B0
subwf Test,W ; 16 * tens + ones - 6 * tens |B0