Wed May 15, 2013 2:06 pm
movlw 0x04 ; set loop count to 4
loop bcf STATUS, C, A ; shift the number to the right 1 place
rrcf 0x12, F, A ; “
rrcf 0x11, F, A ; “
rrcf 0x10, F, A ; “
decfsz WREG,W,A ; have we shifted right four places yet?
goto loop ; not yet, continue
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.