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.

Note: if you doubleclick on the TAP file, it will run your default version of Euphoric (if you have it installed) it instead of the OSDK version. Not a big deal, but you have to know it :)

hello world (simple)

A simple "hello world" program.

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:

It also demonstrate how to use XA advanced syntax to create data tables.

hires draw

A small program that display squares and circles on the hires screen.

This example shows how it's possible to use BASIC drawing commands to draw things using Oric hires graphic mode.

hires picture

A simple program that display a picture on the hires screen.

This example shows how it's possible to use PictConv to convert a picture to a format readable on the oric.

compression test

A program that unpack a picture on the hires screen.

This example shows how it's possible to use PictConv to convert a picture to a format readable on the oric. And also show to use FilePack and Bin2Txt to generate compressed data files

Game 4KKong

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.

256 bytes demo

This is a mini demo.

This example shows how to use the linker parameters to generate a very small program by not including the default libraries.