From: Michael Gernoth Date: Sat, 5 Sep 2020 20:33:14 +0000 (+0200) Subject: print more chipselect info X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/32620_extract/commitdiff_plain/ff3527d1818db03f65b11175cbf7996017cd8275?hp=59ab6a09d9fa36d29c6a992e4f6f91a807c25b99 print more chipselect info --- 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)