+ Reply to Thread
Results 1 to 5 of 5
Thread: 32 bit math
-
- 11th February 2008, 21:02 #1
32 bit math
I have to add 2 numbers in a very repetitive sequence.One is 10 bit and the other -where the addition is registered- should be a 32 bit register. Could anyone suggest a subroutine to add these numbers, compatible with PBPro?
Thanks in advanced
-Francesc
-
- 11th February 2008, 21:31 #2
Piece of Cake.
Code:Result VAR WORD[2] Avar VAR WORD Result[0] = Result[0] + Avar if Result[0] < Avar then Result[1] = Result[1] + 1
DT
-
- 12th February 2008, 06:04 #3
-
- 12th February 2008, 21:06 #4
-
- 13th February 2008, 00:55 #5
Similar Threads
-
Bits, Bytes Words and Arrays
By Melanie in forum FAQ - Frequently Asked QuestionsReplies: 24Last Post: - 14th June 2016, 07:55 -
Averaging 16 bit values without using 32 bit math
By sirvo in forum mel PIC BASIC ProReplies: 2Last Post: - 5th October 2007, 22:18 -
PIC18Fxx math 24 & 32 bit
By ronsimpson in forum mel PIC BASIC ProReplies: 8Last Post: - 2nd December 2006, 13:52 -
32 bit math
By Charles Linquis in forum mel PIC BASIC ProReplies: 12Last Post: - 28th August 2006, 13:34 -
USART interrupt not interrupting right
By Morpheus in forum mel PIC BASIC ProReplies: 12Last Post: - 6th March 2005, 02:07
Bookmarks