/* common.c */

#include "common.h"

intvector_t v;
intvector_t lastv;

void set_callback(int type, void (far *callback)())
{
#ifdef LSI_C
	v.callback = (void (near *)())FP_OFF(callback);
#else
	v.callback = (void (near *)())callback;
#endif
	v.cs = _CS;
	v.ds = _DS;
	sys_interrupt_set_hook(type, &v, &lastv);
}
