I guess it was never updated on Adams site?
Maybe you can send him your screen shot and he can
update the site.
Yeah ..we get this inverse problem fixed first.
I used the V1.0 source. The 1.1 archive
does not seems to support the Apple II directly anymore ...anyway I went
with the older version
I wonder why?. Did you try to compile it? As far as I
could tell the only thing necessary to compile under
cc65 was to tell it you wanted an Apple ][ binary.
I took a quick look at the code and could not see a way to compile a apple 2
version ..have not had time to figure it out yet ...ar if the current
verison in cvs is based on v1.0 or V1.1 source tree's.
All I did was download the V1.0 source, cc65 and a windows make binary.
I
looked through Google and found previous posts from Chris and others about
the problems they encountered and I applied their suggestions to the source
code and was able to compile it. The screen shot you see is that code
running on kegs.
Lets see ..I found and applied the following info
1) I modifed the apple2.h file in /cc65/include/apple2.h from #define
CH_CURS_DOWN 0x0A to #define CH_CURS_DOWN 0x0D
This corrects something in the cc65 library.
2) I added the following code to /contiki/ek.dispatcher.c
/*--------------------------------------------------------------------------
---------*/
clock_t clock(void)
{
static clock_t fake;
return fake++;
}
/*--------------------------------------------------------------------------
---------*/
This for a function missing in the cc65 apple ][
libraries. There is a function in the C64 which
generates a clock signal. It is used by Contiki for
networking timeouts. To get networking to work you may
need to elaborate this function. Ideally add it to the
cc65 Apple ][ library. The problem is that there are
many ways to do and it depends on the hardware in the
apple. Your ethernet card may also have something with
these functions built into it.
3) I added the constant #define CLK_TCK 1 to
/contiki/arch/cc65/ctk-conio.h
(I know this is wrong and havn't bothered to figure out the correct
value
yet)
I believe that this will be a trial and error, and
will depend on the actual implementation of the timing
loop and the hardware.
I think that was about it ... I used Ciderpress to add the resulting
binary
to a PRODOS 140K disk image. Make the type BIN. I have run it on
AppleWin
and Kegs. Under prodos you need to bload contiki,a$800 then call-151 and
do
a 7FC<800.5000M .... 800G
Next on the list is the inverse problem ....I could not find anything on
the
various mailing lists or Goolge about that so far.
btw it works in 40 or 80 column mode
Glenn
I hope this helps.
Thanks for posting this I tried to do this when
Contiki first came out but my 6502 and C knowledge was
inadequate.
--
Rob
"Never ascribe to malice that which can adequately be
explained by stupidity."
I was kind of wondering at first as someof the posts in Adams Contiki news
archive indicated he a version of the code that compiled (quite a while
agao) but he could not test it as he didn't have an emulator (and probably
way to busy anyway)
Rob, I sent you a couple of emails ... did you get them?