Perform Multiplication by Shift Left Operations , Multiply the 3-byte number store at 0x00…0x02 by 8
Code:
movlw 0x03 ; set loop count to 3 loop bcf STATUS, C, A; clear the C flag rlcf 0x00, F, A ; shift left one place rlcf 0x01, F, A ; “ rlcf 0x02, F, A ; “ decfsz WREG,W,A ; have we shifted left three places yet? goto loop ; not yet, continue
_________________ M. S. Rakha, Ph.D. Queen's University Canada