On Tue, 2003-05-27 at 08:01, Clinton A. Pierce wrote: > At 11:57 PM 5/26/2003 -0400, Will Coleda wrote: > >Perhaps "macros only work in assembler mode" is the issue? > > > >http://www.mail-archive.com/[EMAIL PROTECTED]/msg14107.html > > > >Regards. > > It was, but I was looking for the "why" of it. Leo answered that ("IMCC > has .const") so I'm all set now.
Is there is reason not to s/\.constant/.const/g for consistency's sake?
And actually, on further consideration, .const isn't what I want either. What I really want is a #define directive for general-purpose (simple) compile-time substitutions. For example, to refer to a Px register that I'm going to need on-and-off through a program's life to manage BASIC's internal stuff.
# These are vastly simplified, but give you the idea .define BASICARR $P9999 .sub _DIMENSION # void DIMENSION(string array) saveall .param string array new $P0, .PerlArray BASICARR[array] = $P0 restoreall .end .sub _ARR_LOOKUP # string ARR_LOOKUP(string key) saveall .param string key set $S0, BASICARR[key] .return $S0 restoreall .end