COM op code
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?
Moderator
iTrader: (1)
Joined: Mar 2002
Posts: 18,432
Likes: 233
From: Chasing Electrons
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




