PDA

View Full Version : need help in assembling a source code



mellifluous
- 23rd September 2008, 18:56
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.

skimask
- 23rd September 2008, 19:21
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?

mellifluous
- 23rd September 2008, 20:42
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...

skimask
- 23rd September 2008, 21:04
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...

Kamikaze47
- 24th September 2008, 06:56
You may want to try asking on the Microchip forums - http://forum.microchip.com