[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inverse Problem on Contiki - JPG File attached
- Subject: Re: Inverse Problem on Contiki - JPG File attached
- From: Robert Steinmetz <not-rsteinmetz@mindspring.com>
- Date: Sun, 07 Mar 2004 19:34:48 -0600
- In-reply-to: <fkK2c.135893$ah.131666@twister01.bloor.is.net.cable.rogers.com>
- Newsgroups: comp.sys.apple2
- Organization: Cox Communications
- References: <2uJ2c.135152$ah.113943@twister01.bloor.is.net.cable.rogers.com> <1ga9zor.1riws1xqmnebkN%see_sig_for_valid_email@no.spam> <fkK2c.135893$ah.131666@twister01.bloor.is.net.cable.rogers.com>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007
- Xref: archiver1.google.com comp.sys.apple2:4147
Glenn Jones wrote:
"Simon Williams" <see_sig_for_valid_email@no.spam> wrote in message
1ga9zor.1riws1xqmnebkN%see_sig_for_valid_email@no.spam">news:1ga9zor.1riws1xqmnebkN%see_sig_for_valid_email@no.spam...
Glenn Jones <rg.jones@rogers.com> wrote:
Has anybody else figured out what the problem is with highlighted text
(Inverse) on the Apple II port of Contiki?
Contiki has a status line/menu bar across the top of
the screen. That doesn't seem to be written correctly
in your screen shot. I'd bet that that is what is
causing the problem.
I think there has been for quite awhile but with no network support
There is no network support because there is no
support in cc65 or any network devices or for the
apple serial port for slip. There may be some function
missing from the Apple ][ libraries in cc65. Perhaps
you could build a driver for your ethernet card, you
seem pretty close to getting it to work.
I guess it was never updated on Adams site?
Maybe you can send him your screen shot and he can
update the site.
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.
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."