[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inverse Problem on Contiki - JPG File attached



"Robert Steinmetz" <not-rsteinmetz@mindspring.com> wrote in message
404BCDB8.90803@mindspring.com">news:404BCDB8.90803@mindspring.com...
> 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 it is related to the reverse function. The source code to the apple
library is contained is the cc65 source distribution so I will have a look
at that next.

> >
> > 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.
>

Should be possible ... It would be cool to use the tgi interface and
extended memory support on the Apple IIe as well ..not sure if there are
Apple II drivers for the memory access yet.

> > 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?

Glenn
-- 
Personal Website: http://members.rogers.com/rg.jones/
Apple Specific Website http://members.rogers.com/apple2stuff/apple.htm
Email: Reply to apple2stuff at rogers dot com