Results 1 to 15 of 20

Thread: $EE Code for electric water pump on AIR output

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Fuel Injected!
    Join Date
    Jan 2012
    Location
    Poland
    Posts
    147
    OK, so the subroutine would look like this:
    Code:
    ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ;
    ; Routine to enable Electric Water Pump when engine not running
    ;
    ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    9000    1D 00 01            bclr    0, X, #%00000001       ; Disable WP (X already set to $1800)
    9003    B6 01 28            ldaA    L0128                  ; Load A/D Ignition Voltage
    9006    81 30               cmpA    #$30                   ; Compare to 48
    9008    23 0A               bls    @1                      ; Bra to return if Ign Voltage <= 4.8V (Ignition off)
    900A    B6 01 92            ldaA    l_0192_CoolTmp_fltrd_$f0    ; Load Coolant Temp
    900D    81 B9               cmpA    #$B9                   ; Compare temp to 99 deg C
    900F    23 03               bls    @1                      ; Bra to return if Temp <= threshold
    9011    1C 00 01            bset    0, X, #%00000001       ; Enable WP (X already set to $1800)
    9014    7E 49 44        @1  jmp     L4944
    ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    And:
    Code:
    4935    CE 18 00            ldX    #$1800
    4938    12 23 80 05         brset   L0023, #%10000000, @7
    493C    7E 90 00            jmp     L9000 ; jump to new subroutine
    493F    20 03               jr    @8
    ;
    4941    1C 00 01        @7  bset    0, X, #%00000001
    Now I just need 23 bytes of program memory to add my subroutine. Kur4o, can you point me at some usable address?

    [EDIT] I've found E-side 0x9000 - 0x93FF marked as free memory in EEXtra.xdf, so I guess the subroutine goes to 0x9000 :)
    Last edited by dzidaV8; 11-14-2017 at 12:35 AM.

Similar Threads

  1. Replies: 17
    Last Post: 08-05-2019, 06:25 AM
  2. DTC's and Output assembly code
    By turbo_bu in forum GM EFI Systems
    Replies: 0
    Last Post: 04-17-2017, 04:12 PM
  3. Replies: 19
    Last Post: 12-21-2013, 10:02 PM
  4. PWM Electric Water Pump control
    By gregs78cam in forum Gear Heads
    Replies: 12
    Last Post: 05-28-2013, 01:51 AM
  5. Replies: 0
    Last Post: 03-21-2012, 08:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •