Possible to create a table to change individual bits?

Discuss anything TunerPro related.

Moderators: Mangus, robertisaar, dex

Post Reply
Phoenix
Posts: 3
Joined: Thu Mar 03, 2022 3:11 pm

Possible to create a table to change individual bits?

Post by Phoenix »

Hello,

I'm wondering if there is a way to set up a table in TunerPro so that it can change individual bits from 0 to 1 and 1 to 0 in an individual byte? I'm trying to define a parameter in the P59 GM OS that deals with engine protection and a cylinder group. In the byte each cylinder is represented by 1 bit so for example:

HEX value is 55, the Binary value is 01010101. The cylinders are defined as:
Cylinder H = 0, False
Cylinder G = 1, True
Cylinder F = 0, False
Etc.

I know I can set up a Flag and change the individual bit that way, but is there a way to group them them together and have 1 table instead of 8 flags?
User avatar
Mangus
TunerPro Author
Posts: 1918
Joined: Wed Mar 19, 2003 1:49 pm

Re: Possible to create a table to change individual bits?

Post by Mangus »

The request is on my radar, thanks!
***************************************
TunerPro Author
1989 Trans Am
bubba2533
Posts: 10
Joined: Wed Jun 17, 2020 5:50 pm

Re: Possible to create a table to change individual bits?

Post by bubba2533 »

I think this would be a useful thing for some tables I need to create.
antus
Posts: 6
Joined: Tue Jan 13, 2009 6:42 pm

Re: Possible to create a table to change individual bits?

Post by antus »

There is a discussion about this over at pcmhacking, just linking back the other way. I agree it sounds like a job flags could tackle, but the table of bits would be very nice. https://pcmhacking.net/forums/viewtopic.php?f=42&t=7806
Post Reply