Success! Are they 'words' or are they 'bytes'?


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2009
    Posts
    5

    Default Success! Are they 'words' or are they 'bytes'?

    PIC16F506 (1K code space)
    Odd thing - Results window says 'Success : 870 words used. The '.lst' files says 'Program Memory Words Used - 870' with 154 free, yet the MPASM is generating a lot of 'error[126] arg. out of range' errors. My prerequisite forum searches revealed the term "bytes used" here and there. The Error[126]'s in pbppic12.lib and Warning[200]'s in the '.mac' make sense if WORDs are 2 bytes, but the list output shows a memory map with free space - as though they are BYTEs.

    ALSO... another odd thing. I removed all the extraneous verbose comments and unused labels, just to make it easier to read now that I 'know' my program, and the compile did NOT show 'Success', just the 'Assembler errors'. Memory used was the same - 870 (out of 1024).

    Can anyone clue me in?
    Which program is telling me 'Success' in the results window?
    If it's MPASM, then are those the word/bytes used NOT INCLUDING the code that wouldn't fit? Just looking for a little clarification.
    Thanks in advance.

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink

    Hi,

    The good question is to see the word length ...

    program space is 1 K Words, Ok ... but those words are ?? bits wide ...

    Good question eh ???

    But without seeing what you wrote ... how do you want us to help you more ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Dec 2009
    Location
    Warrenton Mo
    Posts
    7


    Did you find this post helpful? Yes | No

    Default What is a "word"?

    > Another compiler I used to use, told the total program amount of bytes used, and how much variable ram memory was used, too bad PBP does not. Like you said, what is a "word"? Is it a memory term?

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    You need to look at the data sheet to see if the word is 14 or 16 bits.
    PBP does tell you all of the info. It is in the LST file.

    But I agree. It is sometimes difficult comparing one PIC to another.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. LP Instant Interrupts Error
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th December 2009, 09:13
  3. bytes compressed and encrypted
    By RAYMON in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 3rd March 2009, 11:24
  4. calculate var Byte's and var Word's
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 31st October 2005, 09:29
  5. Codespace Saving Tip... Don't mix Words and Bytes
    By Melanie in forum Code Examples
    Replies: 0
    Last Post: - 18th June 2004, 10:23

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