Error[118]


Closed Thread
Results 1 to 5 of 5

Thread: Error[118]

  1. #1
    Join Date
    Nov 2008
    Posts
    14

    Default Error[118]

    Hey,

    I'm done writing my program, but every time i try to compile it. It give the following error:

    Error[118] c:\pbp\picpro~1\ont\ontste~1.asm 154: Overwriting previous adress

    I have already located the error but i doesn't understand why he give the error.
    If i remove line 12 (org 0x00) or 97 (GOTO INITIAL) the problem is solved.

    But with the opcode org, i only say where i write my program away in the µC. So it doesn't matter that the goto instruction is also at 00. Or am i wrong?

    I have uploaded my program.

    Thanks at advance,
    Ward
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2008
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    Hey,

    It's has noting to do with the original problem but i have found and solved another one. I say this so that you don't wonder why i did this if you are looking in the program.

    At line 371 i want to multiply by 10 and i did this by doing a rotate left 5 times, and that isn't a multiply by 10 but by 32.
    Now i didn't multiply the denominator, but i divided the divisor with 10.

    The new file is uploaded as well.

    If you found another mistake, please feel free to inform me.

    Ward
    Attached Files Attached Files
    Last edited by Lionheart; - 18th October 2009 at 19:54.

  3. #3
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default 118 error

    I had the same 118 error when I got back to programming the other day. It's caused by a conflict in trying to write the config settings. The simple thing to do is to edit the INC file PBP directory and rem out the line beginning [i]__config

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,613


    Did you find this post helpful? Yes | No

    Wink

    Hi, Lionheart

    I really do not understand why you use PicBasicPro fot such a program ...

    as it is fully asm Written ...

    Make it simple !!! you won't get errors such " 118 " ...

    Alain

    BTW : Happy Birthday !!!
    Last edited by Acetronics2; - 22nd October 2009 at 08:37.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  5. #5
    Join Date
    Nov 2008
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    Hey,

    Acetronics
    First of all thanks for wishing me a happy birthday.
    Originaly i wanted to write it in basic language. But i could not do wat i wanted. Because the time i can measure with Pulsin was to short. And in assembler i could costumize everything. And calculate the time to the nanosecond wich was also important.

    Scampy:
    I have inc my first line like you said from org0x00 to org 0x01 and the problem is gone. So if i understand correctly the problem was that the adress org 0x00 was preserved for the config settings then. Thanks for the info.

    Regards,
    Ward

Similar Threads

  1. USBDemo, something to learn USB a little bit
    By mister_e in forum Code Examples
    Replies: 278
    Last Post: - 1st May 2014, 00:38
  2. Trying to migrate to 18F..
    By Glenn in forum General
    Replies: 29
    Last Post: - 9th February 2010, 23:25
  3. error in pbppic14.lib after re-installing xp
    By comwarrior in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th November 2009, 01:13
  4. Fail to compile, COD file missing
    By Jumper in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th June 2009, 17:20

Members who have read this thread : 1

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