XiKeiyaZI
15+ Year Contributor
- 6,994
- 88
- Dec 28, 2008
-
Goldsboro,
North Carolina
Okay, I thought I'd give this a shot and see what I could come up with.
I've finally got another car that I can DD around for the time being and the one last thing I really need to be able to do right now, to be safe, is log knock. Well, seeing as how I can't get Evoscan working perfectly at the moment I was looking for alternative ways to log knock. I came across something interesting on the dsm-ecu yahoo forums : Turning the stock 2G Boost Gauge into a simple Knock-Sum gauge.
Now, while I understand the changes and formula.. I have, frankly, no idea how to add it or even locate the stock code in the .BIN. I was wondering if anyone could give me a hand in figuring this one out. I'm using Tunerpro in Relation to Ostrich, but seeing as how it's all Hex, I'm sure it can be coupled with a Hex editor. The code I found and wanted to give a shot is below. A simple explanation would be very appreciated as it seems hard to find any other information related to this...
> 2g boost gauge
>
> 6eeb: ce f5 8e ldx #$f58e
> 6eee: 96 d5 ldaa AirVol
> 6ef0: bd c0 52 jsr $c052
>
> 6fdf: 86 80 ldaa #128
> 6fe1: 10 sba
> 6fe2: 24 01 bcc 0x6fe5
> 6fe4: 4f clra
> 6fe5: b7 02 08 staa 0x208
>
> 6fe8: b6 02 08 ldaa 0x208
> 6feb: 81 80 cmpa #128
> 6fed: 23 02 bls 0x6ff1
> 6fef: 86 80 ldaa #128
> 6ff1: 48 asla
>
>
> 2g knock gauge
>
> 6eeb: ce f5 8e ldx #$f58e (scaling bytes lookup)
> 6eee: 96 97 ldaa knock sum
> 6ef0: bd c0 52 jsr $c052
>
> 6fdf: 86 80 ldaa #128
> 6fe1: 10 sba
> 6fe2: 24 01 bcc 0x6fe5
> 6fe4: 4f clra
> 6fe5: b7 02 08 staa 0x208
>
> 6fe8: b6 02 08 ldaa 0x208
> 6feb: 81 80 cmpa #128
> 6fed: 23 02 bls 0x6ff1
> 6fef: 86 80 ldaa #128
> 6ff1: 48 asla
>
>
> scaling bytes@ f58e: 00 50 a0 f0 ff ff ff ff ff
> This will set the scale to 0-20 counts
I've finally got another car that I can DD around for the time being and the one last thing I really need to be able to do right now, to be safe, is log knock. Well, seeing as how I can't get Evoscan working perfectly at the moment I was looking for alternative ways to log knock. I came across something interesting on the dsm-ecu yahoo forums : Turning the stock 2G Boost Gauge into a simple Knock-Sum gauge.
Now, while I understand the changes and formula.. I have, frankly, no idea how to add it or even locate the stock code in the .BIN. I was wondering if anyone could give me a hand in figuring this one out. I'm using Tunerpro in Relation to Ostrich, but seeing as how it's all Hex, I'm sure it can be coupled with a Hex editor. The code I found and wanted to give a shot is below. A simple explanation would be very appreciated as it seems hard to find any other information related to this...
> 2g boost gauge
>
> 6eeb: ce f5 8e ldx #$f58e
> 6eee: 96 d5 ldaa AirVol
> 6ef0: bd c0 52 jsr $c052
>
> 6fdf: 86 80 ldaa #128
> 6fe1: 10 sba
> 6fe2: 24 01 bcc 0x6fe5
> 6fe4: 4f clra
> 6fe5: b7 02 08 staa 0x208
>
> 6fe8: b6 02 08 ldaa 0x208
> 6feb: 81 80 cmpa #128
> 6fed: 23 02 bls 0x6ff1
> 6fef: 86 80 ldaa #128
> 6ff1: 48 asla
>
>
> 2g knock gauge
>
> 6eeb: ce f5 8e ldx #$f58e (scaling bytes lookup)
> 6eee: 96 97 ldaa knock sum
> 6ef0: bd c0 52 jsr $c052
>
> 6fdf: 86 80 ldaa #128
> 6fe1: 10 sba
> 6fe2: 24 01 bcc 0x6fe5
> 6fe4: 4f clra
> 6fe5: b7 02 08 staa 0x208
>
> 6fe8: b6 02 08 ldaa 0x208
> 6feb: 81 80 cmpa #128
> 6fed: 23 02 bls 0x6ff1
> 6fef: 86 80 ldaa #128
> 6ff1: 48 asla
>
>
> scaling bytes@ f58e: 00 50 a0 f0 ff ff ff ff ff
> This will set the scale to 0-20 counts