dividing 24 bit constant


Results 1 to 9 of 9

Threaded View

  1. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Hi, kasapo

    Here it is :

    '************************************************* *****************************
    'MACRO 32 bits
    '************************************************* *****************************

    ASM
    Putmulresult macro const32

    MOVE?CB low const32, R2
    MOVE?CB low (const32 >> 8), R2+1
    MOVE?CB low (const32 >> 16),R0
    MOVE?CB low (const32 >> 24),R0+1
    endm
    ENDASM

    and when needed :

    @ putmulresult 60000000 or else ...
    Vitesse = DIV32 dureetot
    Vitesse = Vitesse / coeff

    or sth ...looking like that !!!

    I do not find anymore the thread nor ....

    Alain
    Last edited by Acetronics2; - 10th February 2005 at 13:03.

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 08:55
  2. 16F628A - Stops if release power switch.
    By dene12 in forum General
    Replies: 16
    Last Post: - 14th February 2009, 08:57
  3. Sleep Mode
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th March 2008, 11:31
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 01:55
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 02:07

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