I have no answer for how to accomplish something like this, but I am extremely curious as to WHY you would want to do something like this.

 

Greg

 

From: sdcc-user-bounces@lists.sourceforge.net [mailto:sdcc-user-bounces@lists.sourceforge.net] On Behalf Of Jinsik Kim
Sent: Sunday, October 25, 2009 3:41 PM
To: sdcc-user@lists.sourceforge.net
Subject: [Sdcc-user] Allocation each code block to different locations

 

Dear,
 
 
In 8051 assembly, I want split function code into several code blocks and locate each code block to specific memory location.
 
How can I allocate each block into specific memory location.
 
For example
 
.area CS01 (CODE)
func1:
~
~
00001$:
~
00002$:
~
00003$:
~
ret
func1 is located at CS01 address
 
However, I want to split funct1 into 4 parts and locate each at differenct locations, CS01, CS02, CS03, and CS04.
---------------------------------------
funct1: ;;;;-> would be located at CS01
~
~
---------------------------------------
00001$: ;;;;->would be located at CS02
~
---------------------------------------
00002$: ;;;;->would be located at CS03
~
----------------------------------------
00003$: ;;;;->would be lcoated at CS04
~
ret
---------------------------------------
 
Thanks,


Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you.