Some adresses are used by the kernel:


$30.w	: version of the kernel.

$32.w	: OS identifier:
	+ 'DT' for Doors OS
	+ 'UO' for UniOs
	+ 'TO' for Teos
	+ 'PO' for Preos

$34.l	: adress of the exec function.
	Program '68kP'
	Input:
		address of the program to execute + 4 pushed on the stack
	destroy:
		a0-a1/d0-d2

$38.l	: adress of the reloc function
	input :
		d0.w : handle to the file to relocate
	output:
		d0.w : result of the relocation
		a0.l : adress of the name of the library which caused the error (if there was an error)
	destroy:
		a0/d0

$3C.l	: adress of the reloc2 function
	input:
		a6.l : the adress to the very first instruction of the prog (the beginning of the file)
	output:
		d0.w : result of the relocation
		a0.l : adress of the name of the library which caused the error (if there was an error)
	destroy:
		a0/d0


$40.l: adress of the unreloc function
	input :
		d0.w : handle to the file to unrelocate
	destroy:
		a0/d0

$44.l:	adress of the unreloc2 function
	input:
		a6.l : the adress to the very first instruction of the prog (the beginning of the file)
	destroy:
		a0/d0

$48.w: handle of the memory block containing the kernel.
	This block is to be freed if you want to uninstall the kernel
	But it isn't the only thing to uninstall, so use the uninstall program !
	
$4C.l: 	Used by the kernel as a global variable (Preos uses it to save the original trap #0).
	If it isn't NULL, then it is run under SHIFT+ON.
	If there is no kernel, it is an address of the handle of the program to execute after installing the kernel.
	
$50.l	: adress of the exec-archived function:
	Program Archive '68aC'
	Warning:  It may free the handle of the program to execute it.
	Input:
		address of the program to execute + 4 pushed on the stack
	destroy:
		a0-a1/d0-d2

$E0.l: saved auto-int1 (it is the copy to reinstall in case of a nostub crash).
$E4.l: saved auto-int2 (it is the copy to reinstall in case of a nostub crash).
$E8.l: saved auto-int3 (it is the copy to reinstall in case of a nostub crash).
$EC.l: saved auto-int4 (it is the copy to reinstall in case of a nostub crash).
$F0.l: saved auto-int5 (it is the copy to reinstall in case of a nostub crash).
$F4.l: saved auto-int6 (it is the copy to reinstall in case of a nostub crash).
$F8.l: saved auto-int7 (it is the copy to reinstall in case of a nostub crash).
$FC.l: Reserved

Here are a0 values as result
If there is NO_ERROR, a0 is NULL, else a0 is an ANSI string containing the desciption of the error.
