Re: ca65 and macros



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?
.



Relevant Pages

  • Compile-time text/string manipulation
    ... A "compile-time language" is one that processes ... Compile time languages for assemblers ... This group includes macro ... requires access to various string and text manipulation ...
    (alt.lang.asm)
  • RE: Search email for text string to use in filename - save email t
    ... The code for my macro is below. ... .MatchWholeWord = False ... Dim sNewFileName As String ... > 0 Then Exit Function ...
    (microsoft.public.outlook.program_vba)
  • Re: Iding tabs that contain #REF!s
    ... The code I sent you just a little while ago does not seem to work correctly; try this macro instead... ... Sub Findrefs() ... Dim WS As Worksheet, Res As String, TempArrayAs String ... I just had those sheets hidden, but your suggested fix now looks at only the ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Document Property to display more than 1 line
    ... then use the following macro to identify the character ... Dim strNums As String ...
    (microsoft.public.word.newusers)
  • Re: Form refresh code
    ... Your version of the InserrtAddress macro also unlocked the field with the ... string variable name in the protect/unprotect commands. ... Public Sub InsertAddressFromOutlook() ... Dim strCode As String, strAddress As String ...
    (microsoft.public.word.docmanagement)