detect overflow of multiply/ div32 result


Results 1 to 14 of 14

Threaded View

  1. #6
    Join Date
    May 2013
    Location
    australia
    Posts
    2,681


    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
    true but if you go on to a div32 then the result needs to be <$8000000
    and that the div32 divider needs to be < $8000

    and my meat calculator can't do /256 very easily

    here is a start for a pbp calculator
    Attached Images Attached Images  
    Attached Files Attached Files

Similar Threads

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