Code: Why is this code greater than 2000 words?


Results 1 to 10 of 10

Threaded View

  1. #5
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Post "Reuse-ability"

    The term "reuse-ability" springs to mind. For example, you could create a routine for PULSOUT and pass allocated variables to it, resulting in just one instance of the PULSOUT (this will certainly save space)

    Code:
    GOSUB Do_Pulse
    
    Do_Pulse:
       PULSOUT IO_Pin, Duration
    RETURN
    <lu>
    <li> Just declare IO_Pin and duration as variables that are specific to the purpose.</li>
    </lu>
    Last edited by T.Jackson; - 1st June 2007 at 15:45.

Similar Threads

  1. Manchester coding/decoding Code help
    By financecatalyst in forum Code Examples
    Replies: 0
    Last Post: - 25th August 2009, 19:05
  2. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  3. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  4. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  5. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26

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