comparison sw/sniff-dec/atr.c @ 44:74330513121e

simtrace3-sniff-dec: initial cosmetic fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 31 Aug 2023 08:55:34 +0000
parents 118a12e9483b
children
comparison
equal deleted inserted replaced
43:6bef393a700e 44:74330513121e
33 static u_char latch_y, latch_k, have_tck; 33 static u_char latch_y, latch_k, have_tck;
34 34
35 void 35 void
36 atr_begin() 36 atr_begin()
37 { 37 {
38 strcpy(atr_start_timestamp, linebuf);
39 atr_start_line = lineno;
40 substate = SUBST_TS; 38 substate = SUBST_TS;
41 byte_count = 0; 39 byte_count = 0;
42 } 40 }
43 41
44 static int 42 static int
110 switch (substate) { 108 switch (substate) {
111 case SUBST_TS: 109 case SUBST_TS:
112 substate = SUBST_T0; 110 substate = SUBST_T0;
113 return; 111 return;
114 case SUBST_T0: 112 case SUBST_T0:
113 strcpy(atr_start_timestamp, linebuf);
114 atr_start_line = lineno;
115 latch_y = rx_byte & 0xF0; 115 latch_y = rx_byte & 0xF0;
116 latch_k = rx_byte & 0x0F; 116 latch_k = rx_byte & 0x0F;
117 have_tck = 0; 117 have_tck = 0;
118 substate = SUBST_TAn; 118 substate = SUBST_TAn;
119 if (advance_state()) { 119 if (advance_state()) {