DIY PROM Do It Yourself PROM chip burning help. No PROM begging. No PROMs for sale. No commercial exchange. Not a referral service.

COM op code

Thread Tools
 
Search this Thread
 
Old Mar 24, 2005 | 01:45 AM
  #1  
Z69's Avatar
Z69
Thread Starter
Supreme Member
 
Joined: Sep 2003
Posts: 1,409
Likes: 1
From: Texas
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?
Reply
Old Mar 24, 2005 | 07:07 AM
  #2  
RBob's Avatar
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.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
89-IROCZ-5.0TPI
TPI
10
Feb 22, 2022 09:26 PM
Falcon50
DFI and ECM
81
Aug 22, 2020 03:26 PM
racereese
Tech / General Engine
14
Oct 3, 2015 03:46 PM
Luigytico09
TPI
0
Oct 1, 2015 08:46 AM
dusterbd
TPI
0
Sep 29, 2015 08:40 AM




All times are GMT -5. The time now is 05:39 PM.