How can I establish what RAM I need...and therefore which PIC.


Results 1 to 24 of 24

Threaded View

  1. #16
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default

    Hi Hank,
    Instead of using a bunch of spaces have you tried "lining up" you columns by sending the ASCII code for TAB, I think it's 9, that might save a couple of bytes here and there.

    Another option worth looking into is to use the REP modifier, these two lines:
    Code:
    DEBUG "Ten spaces to follow:          ", 13, 10 
    DEBUG "Ten spaces to follow:", REP " "\10, 13, 10
    Prints the same thing on the screen but the second takes up 6 bytes less space. Obviosuly there's a break-even point where the extra codespace needed by REP eats up more than simply spelling out the repeated characters but you get the idea.

    Good luck!
    /Henrik.
    Last edited by HenrikOlsson; - 17th August 2010 at 21:19.

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