]> git.sur5r.net Git - cc65/blobdiff - src/cc65/stdfunc.h
Add support for computed gotos
[cc65] / src / cc65 / stdfunc.h
index 809dc617bfb8cead95f9d8ed60b6a85ba87c79f1..e944d70b973b1ccba1ced41358282b448586166f 100644 (file)
@@ -1,15 +1,15 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                stdfunc.h                                 */
+/*                                 stdfunc.h                                 */
 /*                                                                           */
-/*        Handle inlining of known functions for the cc65 compiler          */
+/*         Handle inlining of known functions for the cc65 compiler          */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2002 Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@musoftware.de                                            */
+/* (C) 1998-2004 Ullrich von Bassewitz                                       */
+/*               Roemerstrasse 52                                            */
+/*               D-70794 Filderstadt                                         */
+/* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 
 /*****************************************************************************/
-/*                                  Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
 
-int IsStdFunc (const char* Name);
+void AddCmpCodeIfSizeNot256 (const char* Code, long Size);
+/* Add a line of Assembly code that compares an index register
+** only if it isn't comparing to #<256.  (If the next line
+** is "bne", then this will avoid a redundant line.)
+*/
+
+int FindStdFunc (const char* Name);
 /* Determine if the given function is a known standard function that may be
- * called in a special way.
- */
+** called in a special way. If so, return the index, otherwise return -1.
+*/
 
-void HandleStdFunc (struct FuncDesc* F, ExprDesc* lval);
+void HandleStdFunc (int Index, struct FuncDesc* F, ExprDesc* lval);
 /* Generate code for a known standard function. */
 
 
 
 /* End of stdfunc.h */
-
 #endif
-
-
-