From ff3527d1818db03f65b11175cbf7996017cd8275 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sat, 5 Sep 2020 22:33:14 +0200 Subject: [PATCH 1/1] print more chipselect info --- extract.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extract.c b/extract.c index 1c5a41c..d54a2a8 100644 --- a/extract.c +++ b/extract.c @@ -92,8 +92,11 @@ int main(int argc, char **argv) if (adr == 0) adr += sizeof(header); - printf("%02d. hi: 0x%02x, lo: 0x%02x, cs: 0x%02x, cs2: 0x%02x -> adr: 0x%04x; amp: 0x%02x\n", - i/3, hi, lo, cs, ((header[i+2] & 0xf8) >> 3), adr, amp); + printf("%02d. hi: 0x%02x, lo: 0x%02x, cs: 0x%02x, cs2: 0x%02x -> chip: 0x%02x, adr: 0x%04x; amp: 0x%02x\n", + i/3, hi, lo, + ((header[i+1] & 0xe0) >> 5), + ((header[i+2] & 0xf8) >> 3), + cs, adr, amp); adrs[i/3] = adr; if ((header[i+2] & 0xf8) == 0xf8) -- 2.39.5