Bonjour à tous,

je voudrais améliorer la gestion du moteur d'une voiture et j'essaye de comprendre le fonctionnement d'un micro controller 68hc11 (MC68HCP11A1VFN).
Je me suis amusé à desassembler un fichier binaire afin d'essayer de mieux comprendre les "tableaux" ou map contenus dans le bin.

Par exemple, j'ai une table d'avance allumage en 8A69 (condition normale) et une autre en 8C19 (condition pied à fond).

Quelqu'un pourrait m'aider à comprendre le code suivant ?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
RESERVED:48EE sub_48EE:                               ; CODE XREF: sub_48D8↑p
RESERVED:48EE                 ldd     #0
RESERVED:48F1                 std     word_2147
RESERVED:48F4                 brclr   <byte_A9 $20 loc_4904 ; ' '
RESERVED:48F8                 ldy     #$8C19
RESERVED:48FC                 ldd     word_2036
RESERVED:48FF                 jsr     sub_B2AB
RESERVED:4902                 bra     loc_4939
RESERVED:4904 ; ---------------------------------------------------------------------------
RESERVED:4904
RESERVED:4904 loc_4904:                               ; CODE XREF: sub_48EE+6↑j
RESERVED:4904                 ldx     #$8A69
RESERVED:4907                 tst     byte_20B1
RESERVED:490A                 bne     loc_490F
RESERVED:490C                 ldx     #$8B41
RESERVED:490F
RESERVED:490F loc_490F:                               ; CODE XREF: sub_48EE+1C↑j
RESERVED:490F                 ldy     #$213A
RESERVED:4913                 ldd     word_2034
RESERVED:4916                 std     0,y
RESERVED:4919                 ldd     word_2036
RESERVED:491C                 std     2,y
RESERVED:491F                 stx     4,y
RESERVED:4922                 ldaa    #9
RESERVED:4924                 staa    6,y
RESERVED:4927                 jsr     sub_B2D6
RESERVED:492A                 brclr   <byte_A2 2 loc_4939
RESERVED:492E                 ldab    byte_8A68
RESERVED:4931                 bpl     loc_4936
RESERVED:4933                 com     word_2147
RESERVED:4936
RESERVED:4936 loc_4936:                               ; CODE XREF: sub_48EE+43↑j
RESERVED:4936                 stab    word_2147+1
RESERVED:4939
RESERVED:4939 loc_4939:                               ; CODE XREF: sub_48EE+14↑j
RESERVED:4939                                         ; sub_48EE+3C↑j
RESERVED:4939                 tab
RESERVED:493A                 clra
RESERVED:493B                 addd    word_2147
RESERVED:493E                 std     word_2147
RESERVED:4941                 rts
RESERVED:4941 ; End of function sub_48EE