evandude
New Member
I am trying to compile this program in MPLAB. (attached... rename to .asm)I didn't write it, it's from EPE magazine; it's the code for their 16F877 based function generator. The article is from 1999 I believe...
MPLAB won't compile it.
I'll spare you the full error log, but here's a sample
that goes on for pages. I don't do anything in assembly... I'm just trying to verify that my board will work to some degree before i go wading through tons of C code to write my own firmware. Am I doing something wrong? (I tried quickbuild, and then making a project with the wizard... with equal results)
or is it because i'm using a relatively recent version of MPLAB (6.61) and the code is from last millenium?
Thanks in advance... I hate to be asking such a dumb question, but the only time I touch assembly (or MPLAB) is when I need to compile someone else's program...
MPLAB won't compile it.
I'll spare you the full error log, but here's a sample
Code:
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 372 : Symbol not previously defined (ANSA2)
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 373 : Symbol not previously defined (OUT6)
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 374 : Symbol not previously defined (ANSA1)
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 375 : Symbol not previously defined (OUT5)
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 376 : Symbol not previously defined (DEC1)
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 377 : Symbol not previously defined (OUT4)
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 380 : Symbol not previously defined (RSLINE)
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 381 : Symbol not previously defined (MARK1)
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 383 : Symbol not previously defined (OUT7)
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 384 : Symbol not previously defined (FSR)
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 386 : Symbol not previously defined (LOOPA)
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 387 : Symbol not previously defined (INDF)
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 388 : Symbol not previously defined (STATUS)
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 388 : Symbol not previously defined (Z)
Error[113] D:\MY DOCUMENTS\PROJECTS\EPE FUNCTION GENERATOR\PICGN220.ASM 390 : Symbol not previously defined (MARK1)
that goes on for pages. I don't do anything in assembly... I'm just trying to verify that my board will work to some degree before i go wading through tons of C code to write my own firmware. Am I doing something wrong? (I tried quickbuild, and then making a project with the wizard... with equal results)
or is it because i'm using a relatively recent version of MPLAB (6.61) and the code is from last millenium?
Thanks in advance... I hate to be asking such a dumb question, but the only time I touch assembly (or MPLAB) is when I need to compile someone else's program...