Introduction

How to use samples:

  1. If there is a "OSDK_MAKEDATA.BAT" file in the folder, run it first.
  2. Run the "OSDK_BUILD.BAT" file that is in each folder to build the program.
  3. Run the "OSDK_EXECUTE.BAT" file to execute using OSDK's emulator.
  4. It's F10 to quit the emulator.

Hello World
A simple "hello world" program is considered as the reference program to test a new language.

Since the OSDK natively support BASIC, C and Assembler, separately or together, there are more than one Hello World examples.
  • hello world (BASIC)
    Well, it's Hello World, and it's written in BASIC.
    This program uses Bas2Tap to generate an Oric executable program from a normal text file.

  • hello world (simple)
    If that one works fine it means everything is correcly configurated. This program shows how to create a program using a single "C" module. It calls the "printf" function that is available as a library function.

  • hello world (assembly)
    A simple "hello world" program.
    This one is written entirely in assembly code, and does not rely on the available code library. (Anyway, there is some setup code executed before calling the program.)

  • hello world (mixed)
    A "hello world" program that uses a "C" module calling a display routine writen in assembly code.
    This example shows how it's possible to access "C" data from the assembly side, and how to pass parameters using the stack.

  • hello world (advanced)
    A "hello world" program that uses a "C" module calling a display routine writen in assembly code.

    This example shows how it's possible to access "C" data from the assembly side, and how to pass parameters using the stack. This one use three parameters:

    • The X display coordinate
    • the Y display coordinate
    • the pointer on the string to be displayed.

    It also demonstrate how to use XA advanced syntax to create data tables.
Complete projects
The best way to learn how to use a new system is to look at existing software. Fortunately quite many of the recent Oric software had their source code released, so you can look and learn.
  • Space 1999
    The complete source code of the Space: 1999 game, including the intro and trailer.

  • Hnefatafl
    The complete source code of the Viking Chess game.

  • Pushing The Envelope
    The complete source code, assets and scripts to rebuild the Pushing The Envelope demo.

  • 4K Kong
    This is a complete game source code presented at the Minigame Compo 2003.
    This example shows how it's possible to use make a 100% assembly code program using the OSDK. It also show how to use FilePack to generate a self depacking executable program.

  • Cyclotron
    This is a complete game source code presented at the Minigame Compo 2004.
    This example shows how it's possible to use make a 100% assembly code program using the OSDK. It also show how to use FilePack to generate a self depacking executable program.
Other examples
There are quite many other samples, dealing with compression, displaying pictures, just browse the depot or look at the sample subfolder of the OSDK archive.



Known issues


No known problem - please signal any issue on the Cross development tools forum.

comments powered by Disqus
Coverity Scan Build Status