[cc65] Oric Atmos library support available

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-04-14 00:43:08


I got a book covering programming the Oric Atmos on friday (yes, there are
still situations where it is possible to get something cheap from ebay:-).
This has enabled me to add support for this machine to the cc65 library. There
has been a startup file and a linker config before, but no other library
support, so the target has been near to unusable until now.

What I've added:

  * Complete conio support.

  * A hacked write() function that makes printf usable, similar to the one
    that has been available on the CBMs before.

  * A clock() function. It is 16 bit only, and I don't have an idea, which
    value CLOCKS_PER_SEC should take, so there's room for improvements.

Using the new library routines, I have been able to compile and use the
hello.c and sieve.c sample programs from the cc65 distributions, as well as
some other test programs. Please keep in mind, that I have never seen or even
programmed an Oric machine before, so what I've done may be somewhat unusual
to an Oric programmer. On the other side, the stuff seems to work, and I think
this is a big step forward for Oric users.

Things that are not available:

  * File I/O (I have not the slightest idea how to use disks on the Atmos)

  * Colors. If you thought, colors on the Atari are weird, please have a look
    at the Oric. Colors are *really* crazy on this platform.

Things that have changed:

  * The startup code does now include a tape header that allows loading the
    executable into an Oric emulator without postprocessing. If you want to
    use the binary on a real machine, you will have to remove the tape header.
    This can be easily done by using a slightly changed linker config, that
    just discards the TAPEHDR segment.

  * Memory setup. I've moved the zero page and have redone the last change by
    Jede, so the linker assumes that the program may use the space up to
    $9800. If you want to do graphics, you will have to use another linker

  * Zero page space used by the program is now restored on exit.

As a rough estimate, support for the Oric Atmos is now equal to or slightly
better than that for the Apple 2. [As a sidenote for Apple users: There has
been a bug in the write() function that made printf unusable - see the "Known
Bugs" page for details.]

The code is in the snapshot available from the FTP server. As usual I'm glad
about feedback, comments and suggestions.



Ullrich von Bassewitz                                  uz_at_musoftware.de
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.

Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-04-14 00:46:45 CEST