From: "Björn Spruck"; on Tues., Dec. 06, 2011; at 07:33 AM -0500 > > I have code which I want to port from another assembler, to inline > within a CC65 project. That code uses a lot of macroes. One thing > which is used quiet often is: > > _IFNE > ; do something > _ELSE > ; do something else > _ENDIF > > where _IF, _ELSE, and _ENDIF are macroes. What the macroes are doing > is, creating (local) labels, and producing the branches. > > beq .ELSE001 > ; do something > bra .ENDIF001 > .ELSE001 > ; do something else > .ELSE001 ;; this is needed only if you have an ENDIF without ELSE > .ENDIF001 > > Now, my question: any idea how that can be done, > in the simplest way, in ca65? Bastian Schick published some macroes on 11 May 2005. (He used .set, so you can see how old .set is.) http://www.cc65.org/mailarchive/2005-05/date.html Look for "if/else/endif macros" in the "Subject:" titles. ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sat Dec 10 12:09:14 2011
This archive was generated by hypermail 2.1.8 : 2011-12-10 12:09:18 CET