- prnt(" AA1: blocks 6-%d", applimit);
- prnt(" AA2: blocks %d-", (applimit+1));
+ if (applimit < 6) applimit = 26;
+ uint8_t kb = 2;
+ uint8_t app_areas = 2;
+ uint8_t max_blk = 31;
+ getMemConfig(mem, chip, &max_blk, &app_areas, &kb);
+ prnt(" Mem: %u KBits/%u App Areas (%u * 8 bytes) [%02X]", kb, app_areas, max_blk, mem);
+ prnt(" AA1: blocks 06-%02X", applimit);
+ prnt(" AA2: blocks %02X-%02X", applimit+1, max_blk);
+
+ prnt("");
+ uint8_t book = isset(mem, 0x20);
+ if (book) {
+ prnt("KeyAccess:");
+ prnt("\tRead A - Kd");
+ prnt("\tRead B - Kc");
+ prnt("\tWrite A - Kd");
+ prnt("\tWrite B - Kc");
+ prnt("\tDebit - Kd or Kc");
+ prnt("\tCredit - Kc");
+ } else{
+ prnt("KeyAccess:");
+ prnt("\tRead A - Kd or Kc");
+ prnt("\tRead B - Kd or Kc");
+ prnt("\tWrite A - Kc");
+ prnt("\tWrite B - Kc");
+ prnt("\tDebit - Kd or Kc");
+ prnt("\tCredit - Kc");
+ }