X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fstackptr.c;h=9313db366816ec7b20295dc375e78a759774e950;hb=9b7c16ec4cbb5282642c377272224e3fc825f860;hp=24b474fbf654a1fcad59e0bdf764e7f69feffa09;hpb=104ae3a54f88f79442cad292b8f57d32bdb0d87c;p=cc65 diff --git a/src/cc65/stackptr.c b/src/cc65/stackptr.c index 24b474fbf..9313db366 100644 --- a/src/cc65/stackptr.c +++ b/src/cc65/stackptr.c @@ -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); +} + + + +