A86: Re: Assembly-86 Digest V1 #850
[Prev][Next][Index][Thread]
A86: Re: Assembly-86 Digest V1 #850
you can't compare something directly to memory. you can do something like:
change_contrast:
out (2),a
ld ($c008),a
ret
just put a with the value of the contrast to change it to. remember to save
whatever you change the contrast to into ($c008) so ti-os can take over when
your done and not mess up. without doing that, there would be no record of
what the current contrast is.
<<out (2),a
cp ($C008) ; both errors occur here
>>