Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

minor fixes to analysis code

  • Loading branch information...
commit cf67b9f86dec05adbb72d61d1b3025c3db124f2a 1 parent 269de61
authored February 27, 2012
14  file-analysis/bdump.c
@@ -236,7 +236,7 @@ int main (int argc, char *argv[]) {
236 236
 	unsigned char afterfirst1[13];
237 237
 	unsigned char variations;
238 238
 	unsigned char afterfirst2[8];
239  
-	unsigned short neetles2[NEEDLELEN];
  239
+	unsigned short needles2[NEEDLELEN];
240 240
 	unsigned char tail1[186];
241 241
 	unsigned char selector[1];
242 242
 	unsigned char selfiller;
@@ -289,18 +289,17 @@ int main (int argc, char *argv[]) {
289 289
 	    ival = (pptr->num_h * 100) + (pptr->num_t * 10) + (pptr->num_o);
290 290
 	    printf("Status   0x%02X (%d)\n", pptr->status, pptr->status);
291 291
 	    printf("  Pgm Number: % 3d\n", ival);
292  
-	    //printf("  Unk nibble: % 3d\n", pptr->unk);
  292
+	    printf("  Unk nibble: % 3d\n", pptr->unk);
293 293
 	    printf("    unk1        0x%02X (%d)\n", pptr->unk1, pptr->unk1);
294 294
 	    ival = (pptr->rows_h * 100) + (pptr->rows_t * 10) + (pptr->rows_o);
295  
-	    //printf("    Rows:     % 3d\n", ival);
  295
+	    printf("    Rows:     % 3d\n", ival);
296 296
 	    ival = (pptr->stitches_h * 100) + (pptr->stitches_t * 10) + (pptr->stitches_o);
297  
-	    //printf("    Stitches: % 3d\n", ival);
  297
+	    printf("    Stitches: % 3d\n", ival);
298 298
 
299 299
 	    printf("--------\n");
300 300
 	}
301 301
     }
302 302
 
303  
-/*
304 303
     printf("===== head =====\n");
305 304
     hex_dump(bd.head, sizeof(bd.head));
306 305
 
@@ -326,8 +325,8 @@ int main (int argc, char *argv[]) {
326 325
 	printf("KHC ");
327 326
     if (bd.variations & VAR_KRC)
328 327
 	printf("KRC ");
329  
-    if (bd.variations & VAR_UNK)
330  
-	printf("UNKNOWN ");
  328
+    //if (bd.variations & VAR_UNK)
  329
+    //printf("UNKNOWN ");
331 330
     printf("\n");
332 331
 
333 332
     printf("===== afterfirst2 =====\n");
@@ -449,5 +448,4 @@ int main (int argc, char *argv[]) {
449 448
 	printf("Selector One pattern start is position %3d Right\n", selone_pos);
450 449
     else
451 450
 	printf("Selector One pattern start is position %3d Left\n", selone_pos);
452  
-*/
453 451
 }
2  file-analysis/brother.py
@@ -128,7 +128,7 @@ def clearFileData():
128 128
         """
129 129
         self.data = []
130 130
         for i in range(2048):
131  
-            self.data.append(char0))
  131
+            self.data.append(char(0))
132 132
         # make this look like cleared memory in the KM
133 133
         self.data[0x0005] = 0x09
134 134
         self.data[0x0006] = 0x01

0 notes on commit cf67b9f

Please sign in to comment.
Something went wrong with that request. Please try again.