[Icc-mot] Two HC08Setup modules problem.

Bob Smith bobsmith5 at verizon.net
Thu Apr 12 15:23:41 PDT 2007


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





More information about the Icc-mot mailing list