]> git.sur5r.net Git - cc65/commitdiff
Added new pushl0 runtime function.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 10 Jun 2012 19:23:15 +0000 (19:23 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 10 Jun 2012 19:23:15 +0000 (19:23 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5706 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/codeinfo.c
src/cc65/coptsize.c

index b232b1e096aeb2a3999c5337208f23d1cc15be1a..d47f12ae4fd4553ee2c70a184d670fb5eb71f0ea 100644 (file)
@@ -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                        },
index c7d8a9bc6c699412d91f5f575273ad6e94c8f848..3e54280dedf0eba811f1b5701ac451fe8945d22b 100644 (file)
@@ -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",
         {