detect overflow of multiply/ div32 result


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: detect overflow of multiply/ div32 result

    It's not complicated...
    C=A*/B is same as C=(A*B)/$FF
    C=A**B same as C=(A*B)/$FFFF

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: detect overflow of multiply/ div32 result

    one day I'm going to write a python pbp calculator with
    pbp math functions including ** , */ and div32
    using unsigned bytes and words
    Richard... I would pay for that
    I have a lot of trouble with that kind of pbp math.
    I always have to compile and test and that takes forever !

    If there was a simulator for pbp math it would be a life saver for sure !

    Regards
    Rui

Similar Threads

  1. multiply oscillators
    By ozzieB in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 7th April 2009, 08:41
  2. Retrieving 32bit Multiply Result
    By Darrel Taylor in forum Code Examples
    Replies: 42
    Last Post: - 28th January 2008, 15:15
  3. 18F4620 hardware multiply
    By eric180db in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th November 2007, 12:54
  4. Replies: 3
    Last Post: - 13th August 2006, 05:16
  5. Can't multiply by 2!
    By jswayze in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th October 2004, 14:24

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts