Re: [cc65] Macros in ca65

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2011-12-09 09:03:11
On Thu, Dec 08, 2011 at 10:59:33AM +0100, Björn Spruck wrote:
> Correction:
>
> A simple solution would be a stack, -> push and pop

If using .push and .pop should imply that this is required to be an assembler
extension, than this is wrong. You can write your own macros to implement this
feature:

  - Use a variable for the stack pointer

  - Use a prefix and this variable to construct identifiers for the stack
    slots.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Dec 9 09:03:17 2011

This archive was generated by hypermail 2.1.8 : 2011-12-09 09:03:19 CET