Installation

Configuring the OSDK

The only important thing you need to do is to set an environment variable to locate the OSDK folder. Starting from this points the make file is able to locate the other files by itself.

If you install the OSDK on your drive C:\ in a folder OSDK, you simply have to add the following line in your AUTOEXEC.BAT:

	SET OSDK=C:\OSDK

Note that if you are using windows 2000 or later, you can also do this operation by right clicking on the "My Computer" icon, and create a new environment variable called OSDK into the "advanced" menu...

Testing if all is working

After setting up the variable, you can test if everything works fine, by simply trying to build and execute one of the samples.

Just go to the folder "Osdk\sample\hello_world_simple", and launch "OSDK_BUILD.BAT". You should have the following display:

	Building the program TEST1 at adress $800
	Compiling MAIN.C
	  - preprocess
	  - compile
	  - convert C to assembly code
	  - cleanup output
	Build of TEST1.tap finished

If you have errors messages like "out of environment space", it means you will perhaps have to modify your "config.sys" file. At the end of the "config.sys" simply add the following line:

	SHELL=C:\WINDOWS\COMMAND.COM /E:4096 /P

If you have this message instead:

	== ERROR ==
	The Oric SDK was not configured properly
	You should have a OSDK environment variable setted to the location of the SDK

it simply means you did something wrong in the section (2). Please not that some versions of windows require you to reboot the system before the modifications made to the environment became effective.

If it works, a BUILD folder should have appear, containing the following files:

Now, you just have to run OSDK_EXECUTE.BAT, that should launch the emulator and run your program. If you don't remember, it's F10 to quit.

Well done, you have compiled and run you first Oric program !