1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-30 20:29:25 +00:00

Tell the compiler more about the runtime library functions.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4004 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2009-08-14 20:21:47 +00:00
parent 4a5ceb13c7
commit fdfa1678d4

View File

@ -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 },