Instant Interrupts - Revisited


Closed Thread
Results 1 to 40 of 773

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Hi sayzer,

    2 years and 3 months since you joined.
    What took you so long?

    WOW! Saved 3100 bytes. That's pretty impressive.

    Can I ask what the difference was? or maybe where the savings came from?
    <br>
    The interesting part is that I did not change anything other the "int" part.

    That is why it was surprising and "Really very interesting for me".
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    You mean that comparing to On-Interrupt of PBP you did a reduction of 3100?

    Ioannis

  3. #3
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post
    You mean that comparing to On-Interrupt of PBP you did a reduction of 3100?

    Ioannis
    Hi Ioannis,

    Actually I tried different codes after this experiment and came up with these simple results.

    1. In a relatively large code, DT's 18F int routine saves a lot of code space compared to On-Interrupt of PBP as you said.
    Ex: I saved 3100 bytes for the same code (code size : approx. 18,000 bytes).

    2. In a small code, DT's 18F routine becomes code hungry.
    Ex: PBP On-Interrupt produces 318 bytes for a sample code I just tried, but
    DT's 18F int routine produces 762 bytes. More then twice larger!


    As the code gets longer, DT's int routine gets handier I suppose.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    Since On Interrupts of PBP puts a check every assembly instructions is obvious why is that code explosion!

    Sure Darrels routines are fixed in length, so either your code is short or long, these routines are known in length. And in my humbble opinion, comparing Darrels interrupts with PBP interrupts is like comparing apples and oranges. Two different things.

    Ioannis

Similar Threads

  1. Clock using Instant Interrupts
    By PICpocket in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th February 2009, 21:43
  2. DT instant interrupts with mister_e keypad
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th November 2008, 20:02
  3. DT's Instant Interrupts trouble
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th November 2008, 20:48
  4. Keypad and DT's Instant Interrupts
    By Homerclese in forum General
    Replies: 11
    Last Post: - 27th April 2007, 06:32
  5. Replies: 1
    Last Post: - 1st November 2006, 03:11

Members who have read this thread : 6

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

Tags for this Thread

Posting Permissions

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