comparison code_part1/OSTC_code_asm_part1/math.asm @ 105:64109f6fb3d1

added END to GasSetup, small fixes
author heinrichsweikamp
date Sun, 19 Dec 2010 14:27:30 +0100
parents eff0da5cb975
children 8d6aca08f66b
comparison
equal deleted inserted replaced
104:2a2606e9db5f 105:64109f6fb3d1
89 subwfb sub_a+1, W 89 subwfb sub_a+1, W
90 movwf sub_c+1 90 movwf sub_c+1
91 return 91 return
92 92
93 93
94 mult16x16: 94 mult16x16: ;xA*xB=xC
95 ;xA*xB=xC
96 clrf xC+2 ; Clear the High-Order Bits 95 clrf xC+2 ; Clear the High-Order Bits
97 clrf xC+3 96 clrf xC+3
98 movf xA, w ; Do the "L" Multiplication first 97 movf xA, w ; Do the "L" Multiplication first
99 mulwf xB 98 mulwf xB
100 movf PRODL, w ; Save result 99 movf PRODL, w ; Save result