Formula for adjusting Data Len 1 & 2 if you add bytes:
N = number of bytes added to GS
DL1 = current value in Data Len 1
DL2 = current value in Data Len 2
NwDL1 = value to replace DL1 with
NwDL2 = value to replace DL2 with
NwDL1 = DL1 + N
NwDL2 = DL2 + N
Of course you must do the calculation either in HEX or convert DL? from hex to decimal and add N to it then convert that sum back to hex. Easy if you have Excel or a calculator provided with Win 7 in the Accessories folder (same place you find command prompt).
Using the Win 7 calculator to find new DL1 example.
1. Open calculator.
2. Change View to Programmer.
3. In lower left select Dword for long.
4. On left select Hex radio button.
5. Enter your DL1 hex value.
ABCD1234
6. Select Dec radio button to convert it to decimal.
-1412623820
7. Add your N (for an example lets use 160 and each keystroke)
+ 1 6 0 =
8. Upon hitting the equals you should see:
-1412623660
9. Convert this back to hex by selecting the Hex radio button.
Attachment 3792
which will look like this in hex edit:
AB CD 12 D4
10. This is an example of a value you need to replace your DL1 with (DL2 will be different)
BTW if you remove bytes then formula becomes:
NwDL1 = DL1 - N
NwDL2 = DL2 - N