Beispiel #1
0
uae_u32 CallLib (uaecptr base, uae_s16 offset)
{
    int i;
    uaecptr olda6 = _68k_areg(6);
    uae_u32 retval;
    _68k_areg(6) = base;
    retval = call_m68k(base + offset, 1);
    _68k_areg(6) = olda6;
    return retval;
}
Beispiel #2
0
uae_u32 CallLib (uaecptr base, uae_s16 offset)
{
    int i;
    uaecptr olda6 = _68k_areg(6);
    uae_u32 retval;
#if 0
    for (i = 0; i < n_libpatches; i++) {
	if (libpatches[i].libbase == base && libpatches[i].functions[-offset/6] != NULL)
	    return (*libpatches[i].functions[-offset/6])();
    }
#endif
    _68k_areg(6) = base;
    retval = call_m68k(base + offset, 1);
    _68k_areg(6) = olda6;
    return retval;
}