[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: merlin ASC command... force hibit clear?
In article <1172515893.790385.125630@h3g2000cwc.googlegroups.com>,
aiiadict@gmail.com wrote:
> data asc "A"
>
> puts ascii A with hibit set at address : data
>
> can I force it to put an A char without hibit set?
>
> Rich
Yes.
data asc "A" ; Double-quote = hi bit set
data asc 'A' ; Single-quote = hi bit clear
And then there's the sweetness of dci -
data dci "This String" ; All except "g" = hi bit set, "g" = clear
data dci 'This String' ; All except "g" = hi bit clear, "g" = set
*REALLY* handy for outputting strings -
Assuming the first (double-quote) form:
ldx #0
loop lda data,x
bpl done
jsr cout
bmi loop
done ora #$80
jsr cout
; fall out - done
--
Don Bruder - dakidd@sonic.net - If your "From:" address isn't on my whitelist,
or the subject of the message doesn't contain the exact text "PopperAndShadow"
somewhere, any message sent to this address will go in the garbage without my
ever knowing it arrived. Sorry... <http://www.sonic.net/~dakidd> for more info