Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Legacy PIC assembly code errors

Status
Not open for further replies.

john2020

Full Member level 5
Joined
Nov 13, 2005
Messages
292
Helped
12
Reputation
24
Reaction score
8
Trophy points
1,298
Activity points
4,911
Legacy PIC code

hi all,

I inherited a bunch of legacy PIC assembly source code and am not
familiar with PIC assembly language. When I assemble it with MPASM I
get a pot full of assembly errors. The source code uses literal
labels. What seems to be causing problems are statements as follows:

LEDBUF1 = 047h
LED_1 = LEDBUF1.0

the assembler gives the following error


Error[113] : Symbol not previously defined (LEDBUF1.0)

I can't find equivalent statements in the user guide. Does anyone
know if this syntax is valid for an old assembler or third party
assembler?
 

Re: Legacy PIC code

Hai

Did you try parellax assembler?

LED_1 = LEDBUF1.0 insted of this can you try

this one?

#def LED_1 LEDBUF1,0


LEDBUF IS A RAM location(variable) AND LED_1 is 0th bit of that variable.

picstudent
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top