File:  [Tom Morton FrontierVM] / frontvm / as68k / hcalls.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:57:47 2018 UTC (8 years, 3 months ago) by root
Branches: frontvm, MAIN
CVS tags: frontvm3-20060623, frontvm3-20060613, frontvm2-20061120, HEAD
Tom Morton


/* d0.b = exception number, a0 = handler. */
static void SetExceptionHandler ()
{
	printf ("Setting exception handler %d to $%x\n", GetReg (0), GetReg (8));
	/* only 32 handlers */
	exception_handlers[GetReg(0) & 31] = GetReg (8);
}

static void PutChar ()
{
	putchar (GetReg (0));
}

HOSTCALL hcalls [] = {
	&SetExceptionHandler,
	&PutChar,
	NULL,				/* 0x50 */
};

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.