commit - ee4dd89bf68a09e9c77103d3106c14bd12a1d650
commit + 5e4364907c5751cad3217f76d1cebf1ba2a1154b
blob - 6533439d94d73f2fdfcac02a955659d5ea3895d6
blob + f142c392765c47cc9b0a063b4f08d8643fb03fa0
--- hackem.c
+++ hackem.c
close(fd);
/* print header line to trace file, if applicable */
- if (tfile)
- fprintf(tfile, "T\tPC\tinstr.\tA\tD\t"
- "R0/SP\tR1/LCL\tR2/ARG\tR3/THIS\tR4/THAT\n");
+ tracehdr();
/* compute the desired duration of one clock tick */
dur.tv_nsec = 1000000000L * modf(sfactor / cpufreq, &d);