/* --- Call from assembly TRAP handler --- */
/* --- NOT used when XFS is installed  --- */

void	N_main (void)
{
	int		func_code, *params;
	TRAP	*proc_ptr;
	
	if (N_active)
		net_core (inp_buf);
	params = (int *)Parm_buf;
	packet->path_yn = 0;
	func_code = params[2];
	if ( func_code >= 0x36 && func_code <= 0x57 )
	{
		proc_ptr = loc_arr;
		proc_ptr += (func_code - 0x36);
	/*	Check what the hell is happening some times	( Nothing !! 7/97 ) */
		(*proc_ptr->func)(Parm_buf);
		return;
	}
}

/* Reset the vectors etc (assembly version)	*/
void	reset (void)
{
	Supexec (S_reset);
}

/*	----------------------------------------------------
 * End of functions not needed for XFS
 ---------------------------------------------------- */
