fix off-by-1 screen title fill
[AROS.git] / arch / m68k-amiga / card / ifamigaxip.c
blob126e5256a90cca912bf84b7154a46e4fad9f48d8
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: IfAmigaXIP() function.
6 Lang: english
7 */
9 #include "card_intern.h"
11 AROS_LH1(struct Resident*, IfAmigaXIP,
12 AROS_LHA(struct CardHandle*, handle, A2),
13 struct CardResource*, CardResource, 14, Cardres)
15 AROS_LIBFUNC_INIT
17 struct TP_AmigaXIP xip;
18 ULONG addr;
20 if (!ISMINE)
21 return NULL;
23 if (!CopyTuple(handle, (UBYTE*)&xip, CISTPL_AMIGAXIP, sizeof(xip) - 2))
24 return FALSE;
25 if (xip.TPL_LINK <= 6)
26 return FALSE;
27 addr = (xip.TP_XIPLOC[3] << 24) | (xip.TP_XIPLOC[2] << 16) | (xip.TP_XIPLOC[1] << 8) | (xip.TP_XIPLOC[0] << 0);
29 CARDDEBUG(bug("TP_AmigaXIP found, addr %p\n", addr));
31 /* TODO */
32 return NULL;
34 AROS_LIBFUNC_EXIT