Re: ca65 and macros
- From: schmidtd <schmidtd@xxxxxxxxxxx>
- Date: Tue, 15 Apr 2008 11:55:47 -0700 (PDT)
Oh, one thing I forgot about... in the Apple world, I have to do some
chicanery on strings to make them appear "normal" or "inverse by
manipulating the high bit:
; Define an ASCII string with no attributes
..macro asc Arg
.repeat .strlen(Arg), I
.byte .strat(Arg, I) | $80
.endrep
..endmacro
....and
; Define an ASCII string with the inverse attribute
..macro inv Arg
.repeat .strlen(Arg), I
.byte .strat(Arg, I) & $3f
.endrep
..endmacro
I'm not reaching enlightenment by reading the doc... is there a way to
embed macros? I need to do something like this now:
def_msg my_message, asc "Hello, world!"
or
def_msg my_message, asc("Hello, world!")
where I first have my "asc" macro manipulate the high bit, then pass
the resulting thing to "def_msg." Is this possible?
.
- Follow-Ups:
- Re: ca65 and macros
- From: U. v. Bassewitz
- Re: ca65 and macros
- References:
- ca65 and macros
- From: schmidtd
- Re: ca65 and macros
- From: U. v. Bassewitz
- ca65 and macros
- Prev by Date: Re: Programming under Windows for the IIe
- Next by Date: Re: cc65 and "Hello World"
- Previous by thread: Re: ca65 and macros
- Next by thread: Re: ca65 and macros
- Index(es):
Relevant Pages
|