home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
mint
/
mntutl95.zoo
/
util
/
bootgem.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-11-30
|
389 b
|
28 lines
#include <osbind.h>
#include <minimal.h>
#include <basepage.h>
typedef void (*VOIDFUNC)();
VOIDFUNC gemaddr;
long _stksize = 4*1024L;
void
getgem()
{
long ssp;
ssp = Super(0L);
gemaddr = *( (VOIDFUNC *) 0x4fe );
Super(ssp);
}
main()
{
/* get the GEM entry point... */
getgem();
/* and jump to it; we'd better not ever return! */
(*gemaddr)(_base);
}