]> git.sur5r.net Git - cc65/blobdiff - src/cc65/stackptr.c
Fixed problem with last change. Wide string constants were not handled
[cc65] / src / cc65 / stackptr.c
index 24b474fbf654a1fcad59e0bdf764e7f69feffa09..9313db366816ec7b20295dc375e78a759774e950 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2004      Ullrich von Bassewitz                                       */
+/* (C) 2004-2006 Ullrich von Bassewitz                                       */
 /*               Römerstraße 52                                              */
 /*               D-70794 Filderstadt                                         */
 /* EMail:        uz@cc65.org                                                 */
@@ -55,3 +55,20 @@ int StackPtr = 0;
 
 
 
+void SP_Push (const Type* T)
+/* Adjust the stackpointer for a push of an argument of the given type */
+{
+    StackPtr -= SizeOf (T);
+}
+
+
+
+void SP_Pop (const Type* T)
+/* Adjust the stackpointer for a pop of an argument of the given type */
+{
+    StackPtr += SizeOf (T);
+}
+
+
+
+