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.

multiple asm files in a 8051 keil project

Status
Not open for further replies.

tariq7868

Junior Member level 1
Joined
Mar 29, 2009
Messages
19
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,424
Hello.
I have a very long code written for 8051 in assembly using Keil, all in a single file. And i want to organize and distribute the functions in multiple files, but can't seem to be able to do it. I tried adding assembly code files using $include but there were errors in compiling it. Like, memory overlapping error was produced even defining 'org' in the included files. so is it done in Keil with assembly?

Thanks.
 

It is difficult to advise you without seeing the code. If you were to post or upload your code with an explanation as to how you would like it divided, I'm sure one of us could assist you.

BigDog
 

For example:

code is:

;;;;;;;;;;;;;;;;;;;;;;;;;;
ORG 00h

RESET:

CALL TOGGLE_LED

SJMP RESET


TOGGLE_LED:
CPL P1.0
RET

END
;;;;;;;;;;;;;;;;;;;;;;;;;;

And i want to put the function "TOGGLE_LED" routing
i.e. the part:

TOGGLE_LED:
CPL P1.0
RET

into a separate .asm source file. So how can it be done?

Thanks.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top