From: uz Date: Fri, 14 Aug 2009 20:21:47 +0000 (+0000) Subject: Tell the compiler more about the runtime library functions. X-Git-Tag: V2.13.0rc1~251 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fdfa1678d4309bf7b135c1d1133b43f2bfdbc384;p=cc65 Tell the compiler more about the runtime library functions. git-svn-id: svn://svn.cc65.org/cc65/trunk@4004 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/codeinfo.c b/src/cc65/codeinfo.c index 1eec54964..0e1333826 100644 --- a/src/cc65/codeinfo.c +++ b/src/cc65/codeinfo.c @@ -212,12 +212,13 @@ static const FuncInfo FuncInfoTable[] = { { "subeqysp", REG_AXY, REG_AXY }, { "tosadda0", REG_A, REG_AXY }, { "tosaddax", REG_AX, REG_AXY }, + { "tosaddeax", REG_EAX, REG_EAXY | REG_TMP1 }, { "tosanda0", REG_A, REG_AXY }, { "tosandax", REG_AX, REG_AXY }, - { "tosaslax", REG_A, REG_AXY | REG_TMP1 }, - { "tosasleax", REG_A, REG_EAXY | REG_TMP1 }, - { "tosasrax", REG_A, REG_AXY | REG_TMP1 }, - { "tosasreax", REG_A, REG_EAXY | REG_TMP1 }, + { "tosaslax", REG_AX, REG_AXY | REG_TMP1 }, + { "tosasleax", REG_EAX, REG_EAXY | REG_TMP1 }, + { "tosasrax", REG_AX, REG_AXY | REG_TMP1 }, + { "tosasreax", REG_EAX, REG_EAXY | REG_TMP1 }, { "tosdiva0", REG_AY, REG_ALL }, { "tosdivax", REG_AXY, REG_ALL }, { "tosdiveax", REG_EAXY, REG_ALL }, @@ -259,6 +260,9 @@ static const FuncInfo FuncInfoTable[] = { { "tossuba0", REG_A, REG_AXY }, { "tossubax", REG_AX, REG_AXY }, { "tossubeax", REG_EAX, REG_EAXY }, + { "tosudiva0", REG_A, REG_EAXY | REG_PTR1 }, /* also ptr4 */ + { "tosudivax", REG_AX, REG_EAXY | REG_PTR1 }, /* also ptr4 */ + { "tosudiveax", REG_EAX, REG_ALL & ~REG_SAVE }, { "tosuge00", REG_NONE, REG_AXY | REG_SREG }, { "tosugea0", REG_A, REG_AXY | REG_SREG }, { "tosugeax", REG_AX, REG_AXY | REG_SREG }, @@ -275,6 +279,9 @@ static const FuncInfo FuncInfoTable[] = { { "tosulta0", REG_A, REG_AXY | REG_SREG }, { "tosultax", REG_AX, REG_AXY | REG_SREG }, { "tosulteax", REG_EAX, REG_AXY | REG_PTR1 }, + { "tosumoda0", REG_A, REG_EAXY | REG_PTR1 }, /* also ptr4 */ + { "tosumodax", REG_AX, REG_EAXY | REG_PTR1 }, /* also ptr4 */ + { "tosumodeax", REG_EAX, REG_ALL & ~REG_SAVE }, { "tosumula0", REG_AX, REG_ALL }, { "tosumulax", REG_AX, REG_ALL }, { "tosumuleax", REG_EAX, REG_ALL },