need help in assembling a source code


Closed Thread
Results 1 to 5 of 5
  1. #1

    Default need help in assembling a source code

    Firstly, sorry for bothering you with my silly question coz I'm totally newbie trying to do a simple thing and canīt figure it out.

    I'm currently construct Buck-Boost LED Driver Using the PIC16F785 MCU provided by microchip.This circuit come with a asm source file to program the MCU but after trying so many time, i still fail to compile it using MPASM n other software. I hope anyone could help me with this and the file has been attach along with this thread.
    Attached Files Attached Files

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mellifluous View Post
    I'm currently construct Buck-Boost LED Driver Using the PIC16F785 MCU provided by microchip.This circuit come with a asm source file to program the MCU but after trying so many time, i still fail to compile it using MPASM n other software. I hope anyone could help me with this and the file has been attach along with this thread.
    So, what ERROR does MPASM give you?

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Error[149] C:\ASM\AN1047.ASM 73 : Directive only allowed when generating an object file
    Error[149] C:\ASM\AN1047.ASM 96 : Directive only allowed when generating an object file
    Error[149] C:\ASM\AN1047.ASM 103 : Directive only allowed when generating an object file
    Message[305] C:\ASM\AN1047.ASM 120 : Using default destination of 1 (file).
    Message[305] C:\ASM\AN1047.ASM 311 : Using default destination of 1 (file).
    Message[305] C:\ASM\AN1047.ASM 360 : Using default destination of 1 (file).
    Message[305] C:\ASM\AN1047.ASM 377 : Using default destination of 1 (file).

    these are the message receive at the error log after assemble the program. I wonder what is the problem...

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mellifluous View Post
    Error[149] C:\ASM\AN1047.ASM 73 : Directive only allowed when generating an object file
    Error[149] C:\ASM\AN1047.ASM 96 : Directive only allowed when generating an object file
    Error[149] C:\ASM\AN1047.ASM 103 : Directive only allowed when generating an object file
    So, don't generate an object file.
    If you read the file itself, the answer might be near the top of the file...then again it might not. Don't know, haven't tried it myself.

    Message[305] C:\ASM\AN1047.ASM 120 : Using default destination of 1 (file).
    Message[305] C:\ASM\AN1047.ASM 311 : Using default destination of 1 (file).
    Message[305] C:\ASM\AN1047.ASM 360 : Using default destination of 1 (file).
    Message[305] C:\ASM\AN1047.ASM 377 : Using default destination of 1 (file).
    MESSAGE, not warning...

  5. #5
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    You may want to try asking on the Microchip forums - http://forum.microchip.com
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

Similar Threads

  1. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Replies: 1
    Last Post: - 21st February 2008, 15:36
  4. Please help ? RF Remote Source code
    By sorasit46 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th April 2007, 14:40
  5. Replies: 0
    Last Post: - 15th December 2006, 19:16

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