DT-Ints latency and other interrupt conciderations


Results 1 to 40 of 59

Threaded View

  1. #17
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    With PBPL, all internal System and T? variables are LONGs.

    All multiplications and divisions are done as Longs, even if they are byte vars.
    Most things that get put in a System var with a CALL to the library are done as a Long.

    Code:
    IF ByteVar1 >= ByteVar2 THEN             ; <-- Long 
    IF ByteVar1 = ByteVar2 THEN              ; <-- Byte
    WordVar = WordVar /* Const               ; <-- Long
    ByteVar1 = ByteVar1 + Const              ; <-- Byte
    ByteVar1 = ByteVar1 + (ByteVar2 >> 2)    ; <-- Long
    ByteVar1 = ByteVar1 + (ByteVar2 >> 1)    ; <-- Byte
    Having 32-bit vars is nice, ... unless you need speed.

    Is there a particular reason you need PBPL?
    Maybe we can cut that down to word sized math so you can go back to PBPW.
    <br>
    Last edited by Darrel Taylor; - 1st January 2010 at 22:26. Reason: added
    DT

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