Subversion Repositories svn.mios

Rev

Rev 1 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 44
Line -... Line 1...
-
 
1
; $Id: math_mul16_16.inc 44 2008-01-30 21:39:30Z tk $
-
 
2
1
;; Multiply 16x16 bit routine from the PIC18F452 datasheet, Chapter 7.2 "8 X 8 HARDWARE MULTIPLIER, Operation"
3
;; Multiply 16x16 bit routine from the PIC18F452 datasheet, Chapter 7.2 "8 X 8 HARDWARE MULTIPLIER, Operation"
2
4
3
;; MUL_R_3:MUL_R_0 = MUL_A_H:MUL_A_L * MUL_B_H:MUL_B_L
5
;; MUL_R_3:MUL_R_0 = MUL_A_H:MUL_A_L * MUL_B_H:MUL_B_L
4
;;           = (MUL_A_H * MUL_B_H * 2^16) +
6
;;           = (MUL_A_H * MUL_B_H * 2^16) +
5
;;             (MUL_A_H * MUL_B_L * 2^8) +
7
;;             (MUL_A_H * MUL_B_L * 2^8) +