From: uz Date: Sun, 10 Jun 2012 19:23:15 +0000 (+0000) Subject: Added new pushl0 runtime function. X-Git-Tag: V2.14~362 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4b80a3b9cd987b938458addb4ea135dff661a855;p=cc65 Added new pushl0 runtime function. git-svn-id: svn://svn.cc65.org/cc65/trunk@5706 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/codeinfo.c b/src/cc65/codeinfo.c index b232b1e09..d47f12ae4 100644 --- a/src/cc65/codeinfo.c +++ b/src/cc65/codeinfo.c @@ -195,6 +195,7 @@ static const FuncInfo FuncInfoTable[] = { { "pushc1", REG_NONE, REG_A | REG_Y }, { "pushc2", REG_NONE, REG_A | REG_Y }, { "pusheax", REG_EAX, REG_Y }, + { "pushl0", REG_NONE, REG_AXY }, { "pushw", REG_AX, REG_AXY | REG_PTR1 }, { "pushw0sp", REG_NONE, REG_AXY }, { "pushwidx", REG_AXY, REG_AXY | REG_PTR1 }, @@ -228,7 +229,7 @@ static const FuncInfo FuncInfoTable[] = { { "steaxysp", REG_EAXY, REG_Y }, { "subeq0sp", REG_AX, REG_AXY }, { "subeqysp", REG_AXY, REG_AXY }, - { "subysp", REG_Y, REG_AY }, + { "subysp", REG_Y, REG_AY }, { "tosadd0ax", REG_AX, REG_EAXY | REG_TMP1 }, { "tosadda0", REG_A, REG_AXY }, { "tosaddax", REG_AX, REG_AXY }, diff --git a/src/cc65/coptsize.c b/src/cc65/coptsize.c index c7d8a9bc6..3e54280de 100644 --- a/src/cc65/coptsize.c +++ b/src/cc65/coptsize.c @@ -333,6 +333,16 @@ static const CallDesc CallTable [] = { }, F_NONE, "pusha0sp" + },{ + "pusheax", + { + /* A X Y SRegLo */ + 0, 0, UNKNOWN_REGVAL, 0, + /* SRegHi Ptr1Lo Ptr1Hi Tmp1 */ + 0, UNKNOWN_REGVAL, UNKNOWN_REGVAL, UNKNOWN_REGVAL + }, + F_NONE, + "pushl0" },{ "pusheax", {