<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Courier New">Hi Bob:<br>
<br>
For your C code try:<br>
<br>
void<br>
_HC08Setup(void)<br>
{<br>
...;<br>
}<br>
<br>
This should generate a replacement __HC08Setup: label in your listing
that<br>
replaces the standard library version.<br>
<br>
Regards,<br>
<br>
</font></font><font size="-1"><font face="Courier New">Derick Hammond<br>
Systems Engineer<br>
Perkins Technologies<br>
T: +61 7 3300 2081<br>
F: +61 7 3300 3530<br>
E: <a class="moz-txt-link-abbreviated"
href="mailto:derick@perkinstechnologies.com.au">derick@perkinstechnologies.com.au</a><br>
W: <a class="moz-txt-link-abbreviated"
href="http://www.perkinstechnologies.com.au">www.perkinstechnologies.com.au</a></font></font><br>
<font size="-1"><font face="Courier New"></font></font><br>
<br>
Bob Smith wrote:
<blockquote cite="mid:004201c77d51$3a96e8e0$aba7fea9@apollo" type="cite">
<pre wrap="">A question for all ICC08 lovers,
I have a real wacko problem that is driving me over the edge.
Here is a fragment of my project.lst file:
I am using version 6.11 of ICC08.
__text_start:
__start:
186D 45 0870 ldHX #0x0870
1870 94 tXS
1871 CD 193A jsr __HC08Setup
1874 45 0077 ldHX #0x0077
1877 65 0079 cpHX #0x0079
Note that the third instruction above shows __HC08Setup (with two
underscores)???
Now another fragment:
0015) void HC08Setup (void) {
FILE: <library>
_HC08Setup:
1939 81 rts
__HC08Setup:
193A 81 rts
Note that there are two versions of HC08Setup above. The top one is the
one generated by my C version of HC08Setup which is included in my
project. The second one seems to come from who knows where? It
includes only a single rts instruction (in other words, a 'Null'
module.) Yes, the first version has only one rts instruction also. To
try to circumvent this problem I commented out all the setup code in
that version and then moved it (my code) back to my main() function
where it seems to work.
Before I ask my questions some more background.
1. The first version of my HCS08Setup was incorrectly named HC08Startup
until I traced the code and noticed the default module was a null module
an doing nothing.
2. I then carefully renamed my C module and the function included to
HC08Setup and recompiled. Every since then the linker resolves the jsr
in cstart (see top fragment above) to the second module as shown in the
second fragment.
Now my questions:
1. If I include a user coded HC08Setup program is there some action I
need to take to make the null ImageCraft version go away.
2. I searched the help files for hc08setup but got no results. Is
there somewhere else I should look for more information?
3. Does ICC08 not support nested comments (Ihave the ASCII extension
option checked in Environdment->Options).
4. I keep finding files with extension ._C in my project folder. What
are these, some kind of backup and what do they mean to me.
Any help or pointers to more info will be most appreciated.
Thanks,
Bob Smith
_______________________________________________
Icc-mot mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Icc-mot@imagecraft.com">Icc-mot@imagecraft.com</a>
<a class="moz-txt-link-freetext" href="http://dragonsgate.net/mailman/listinfo/icc-mot">http://dragonsgate.net/mailman/listinfo/icc-mot</a>
</pre>
</blockquote>
</body>
</html>