rajivc666
Full Member
Karma: +23/-2
Offline
Posts: 127
|
|
« Reply #3 on: February 20, 2012, 11:51:56 AM »
|
|
|
hi, its a 1.8t 06A906032hj ecu, though can be coded for any ecu. Its running fine on my car. Here is the code at 0x8ffd40 extp #0E1h, #1 mov r4,3002h cmp r4,#1234h jmpr cc_z, stage_1 mov r4,#1234h extp #0E1h, #1 mov 3002h,r4 mov r4,#14H extp #0E1h, #1 mov 30fah,r4 jb 0xfd10h.4,cc_isset extp #0E1h, #1 mov 3000h, 0xff1c jmpr cc_uc, stage_1 cc_isset: extp #0E1h, #1 mov 3000h, 0xff1e stage_1: extp #0E1h, #1 mov r4,3000h cmp r4, 0xff1c jmpr cc_z, CC_notset JB 0xfd10h.4, exit extp #0E1h, #1 mov 3000h, 0xff1c jmpr cc_uc,exit CC_notset: jnb 0xfd10h.4, exit extp #0E1h, #1 mov 3000h, 0xff1e jnb 0xfd4eh.3, Exit extp #0E1h, #1 mov r4,30fah cmp r4,#0aH jmpr CC_nz,I mov r4,#14h jmpr CC_uc,set_boost I: cmp r4,#14H jmpr CC_nz,II mov r4,#3ch jmpr CC_uc,set_boost II: cmp r4,#3cH jmpr CC_nz,III mov r4,#64h jmpr CC_uc,set_boost III: cmp r4,#64H jmpr CC_nz,Iv mov r4, #0C8h jmpr CC_uc,set_boost Iv: mov r4,#0ah set_boost: extp #0e1h,#1 mov 30fah,r4 exit: mov r12, #0e400h mov r13, #23fh extp #0e1h, #1 movbz r14, 30fah mov r15, 0f89eh calls 82h,5ef0h rets ldrxnzk: extp #0E1h, #1 mov r4,3002h cmp r4,#1234h jmpr cc_z, stage_11 mov r4,#1234h extp #0E1h, #1 mov 3002h,r4 mov r4,#14H extp #0E1h, #1 mov 30fah,r4 jb 0xfd10h.4,cc_isset1 extp #0E1h, #1 mov 3000h, 0xff1c jmpr cc_uc, stage_11 cc_isset1: extp #0E1h, #1 mov 3000h, 0xff1e stage_11: extp #0E1h, #1 mov r4,3000h cmp r4, 0xff1c jmpr cc_z, CC_notset1 JB 0xfd10h.4, exit1 extp #0E1h, #1 mov 3000h, 0xff1c jmpr cc_uc,exit1 CC_notset1: jnb 0xfd10h.4, exit1 extp #0E1h, #1 mov 3000h, 0xff1e jnb 0xfd4eh.3, Exit1 extp #0E1h, #1 mov r4,30fah cmp r4,#0aH jmpr CC_nz,I1 mov r4,#14h jmpr CC_uc,set_boost1 I1: cmp r4,#14H jmpr CC_nz,II1 mov r4,#3ch jmpr CC_uc,set_boost1 II1: cmp r4,#3cH jmpr CC_nz,III1 mov r4,#64h jmpr CC_uc,set_boost1 III1: cmp r4,#64H jmpr CC_nz,Iv1 mov r4, #0C8h jmpr CC_uc,set_boost1 Iv1: mov r4,#0ah set_boost1: extp #0e1h,#1 mov 30fah,r4 exit1: mov r12, #0e4d0h mov r13, #23fh extp #0e1h, #1 movbz r14, 30fah mov r15, 0f89eh calls 82h,5ef0h rets
|