[comp.sys.atari.st] RESET from C, TOS LOAD, QUICK TOS a

cs325ec@ux1.cso.uiuc.edu (03/27/90)

	I finally got a Reset to work in the following way for a program
	I wrote...

#include <stdio.h>
#include <stdlib.h>
#include <tos.h>

long res;

void getrv(void)
	{
	*(long *)0x426L = 0x31415926L;
	res = *(long *)0x4f2L;
	}

void main(void)
	{
	Dsetdrv(2);
	Dsetpath("\\AUTO\\");
	Frename(0,"HAC.PRX","HAC.PRG");
	Supexec(getrv);
	Supexec(res);
	}

Question:  Is this the simplest way?  Q2:  QUICKTOS by Darek M. doesn't
		work with an image of my ROMS from $fc0000 with length
		192K.  Is there a header on the RAM TOS that allows it
		to be loaded... Does anyone know the mechanism.

	Thanks in advance...

	-- Greg