COM op code
#1
Supreme Member
Thread Starter
COM op code
Wasn't sure of a good subject header....
I have a ram variable that I want to work with that
ranges from 255>0. I want to use it for a look up table.
This would require me to invert the table to match.
While this works, it looks screwy.
How would I go about changing the ram variable to range from 0>255 after loading it to an ACC?
I have a ram variable that I want to work with that
ranges from 255>0. I want to use it for a look up table.
This would require me to invert the table to match.
While this works, it looks screwy.
How would I go about changing the ram variable to range from 0>255 after loading it to an ACC?
#2
Moderator
iTrader: (1)
Join Date: Mar 2002
Location: Chasing Electrons
Posts: 18,405
Likes: 0
Received 216 Likes
on
202 Posts
Car: check
Engine: check
Transmission: check
As you are thinking the COM instruction is the correct one. Load the variable into reg A and COMA it (or reg B and COMB it). It is a straight 1's compliment.
Rbob.
Rbob.
Thread
Thread Starter
Forum
Replies
Last Post