Ben Ogle
#1 ◈ 2024-11-11
L A, ACC ; 354C 1 258 ??? E506
SLL A ; 354E 1 258 ??? 53
ADD A, #logging_table ; 354F 1 258 ??? 867035
MOV DP, A ; 3552 1 258 ??? 52
LC A, [DP] ; 3553 1 258 ??? 92A8
MOV DP, A ; 3555 1 258 ??? 52
LB A, [DP] ; 3556 0 258 ??? F2
SJ label_355b ; 3557 0 258 ??? CB02
; 3559 from 353C (DD0,258,???)
; 3559 from 3541 (DD0,258,???)
label_3559: LB A, #055h ; 3559 0 258 ??? 7755
; 355B from 3557 (DD0,258,???)
; 355B from 3537 (DD0,258,???)
; 355B from 3548 (DD0,258,???)
label_355b: STB A, STBUF ; 355B 0 258 ??? D551
What it does is take a byte, look up the byte in the logging table and then store the byte into the stbuf (tx buffer).
My question is can I make a loop and continuously store things into the tx buffer? That way I could send everything at once and wouldnt have to fuck with sending then receiving, sending then receiving, etc. It should be faster, right? Plus it would be a real snapshot of the ecu's state. So, does the byte get transmitted as soon as it is stored into the STBUF register?
Ben