Re: [cc65] cc65 macros

From: Stephan Lesch <slesch1studcs.uni-sb.de>
Date: 2004-06-19 16:40:33
you might use the C-style define:

ch_enter=13
.define chendter ch_enter,0
.byte "hallo", chendter

results in
0000000: 48 41 4c 4c 4f 0d 00                             HALLO..

cheers,
Stephan

> if have defined a constant CH_ENTER = 13.
> If i use $ab1e to output a string, i would like to have it terminated by
> both enter and zero.
> So i defined a macro like this:
>
> .macro chendter
> CH_ENTER, 0
> .endmacro
>
> I like to use it like this:
> .byte "blabalabla",chendter

----------------------------------------------------------------------
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 Jun 19 16:40:39 2004

This archive was generated by hypermail 2.1.8 : 2004-06-19 16:40:47 CEST