]> git.zerfleddert.de Git - 32620_extract/commitdiff
print more chipselect info
authorMichael Gernoth <michael@gernoth.net>
Sat, 5 Sep 2020 20:33:14 +0000 (22:33 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sat, 5 Sep 2020 20:33:14 +0000 (22:33 +0200)
extract.c

index 1c5a41c637839cddf0f686a405467862a71df346..d54a2a88ac75054188ab0cff97b5e51b7323d498 100644 (file)
--- 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)
Impressum, Datenschutz