Navigate/Search

Contiki Port for IIgs (65816)? cont …

So I spent some time building a HFS formatted HDV volume I could use under kegs. As I am not very familiar with Orca/C I have had to implement a few work arounds due to issues I encountered. I am sure there are better ways of doing things.

1) Had to set they type and AUX type of the .c and .h files so Orca/C would work with them properly. Ciderpress imports them as APW C files. I wrote a simple shell script to change those.

2) Orca/C only searches two include direcories by default. You can include others by two methods. Include pragmas at the beginning of each source file or add complier directives on the command line with cc=(-i”path”)…The problem is it seems the command line is restricted to 256 characters (I have not checked explictly but it bombs to the monitor if I put too many entries.) The way I worked around is was to shorten the path info.

3) Since we are not going to use cc65 and the current Apple ports are currently tied to the library support in that package I am reviewing other coniki ports to see how they handled non cc65 library services. Shouldn’t be a problem.

4) Compiling without loader arch support so it will be one big binary … will make each .prg a seperate segment. For now i commented out conio.h and put stdio.h instead . I expect a lot of linker errors :)

5) Found something Orca/C didn’t like so far

a) the MACRO DSC_HEADER defined in dsc.h is defined with a ; at the end and the invocation of that macro main.c (vis includion of xxx-dsc.h files) also includes a ; at the end.

6) Was able to compile main.c so far with no errors – yay!!

7) So other considerations are

  1. conio support
  2. embedded asm
  3. prg segmentation
  4. file support (cfs/kfs/regular file/io)

Leave a Reply