Switch to full style
PIC Assembly Articles
Post a reply

Perform Multiplication by Shift Left Operations

Wed May 15, 2013 2:02 pm

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,; have we shifted left three places yet?
goto loop ; not yet, continue
 




Post a reply
  Related Posts  to : Perform Multiplication by Shift Left Operations
 shift operator in java     -  
 Perform Division by Shifting to the Right     -  
 Matrix multiplication     -  
 can u check tis code to perform union & intersection of list     -  
 Matrix Multiplication using java     -  
 Matrix multiplication (Product) using C++     -  
 remove space ,trim strings from left side ,right side ,both.     -  
 Operations on Sucxent++     -  
 C++ Boolean Operations     -