The unified diff between revisions [4929ddab..] and [0a96338c..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'disassem.pl'

#
# old_revision [4929ddab8788ddb16c617817cb8f6ec7d517c8a2]
# new_revision [0a96338c7403840a62be9a2bee24166bd7688563]
#
# patch "disassem.pl"
#  from [2d4ff72a2c6af43905fac023009482ba5130b49a]
#    to [e3a1f4e8b00b7939176a50bbba8005966bc2739e]
#
============================================================
--- disassem.pl	2d4ff72a2c6af43905fac023009482ba5130b49a
+++ disassem.pl	e3a1f4e8b00b7939176a50bbba8005966bc2739e
@@ -1,4 +1,4 @@
-#!/usr/pkg/bin/perl
+#!/usr/bin/env perl
 
 open FILE, "input.bin" or die $!;
 
@@ -77,12 +77,12 @@ $output = 0;
 	0x01 => "PDR1",
 	0x02 => "PDR2",
 	0x03 => "PDR3",
-	0x04 => "PDR3",
-	0x05 => "PDR3",
-	0x06 => "PDR3",
-	0x07 => "PDR3",
-	0x08 => "PDR3",
-	0x09 => "PDR3",
+	0x04 => "PDR4",
+	0x05 => "PDR5",
+	0x06 => "PDR6",
+	0x07 => "PDR7",
+	0x08 => "PDR8",
+	0x09 => "PDR9",
 	0x0A => "PDRA",
 	0x11 => "DDR1",
 	0x12 => "DDR2",
@@ -158,9 +158,9 @@ $output = 0;
 	0xB9 => "ICR09",
 	0xBA => "ICR10",
 	0xBB => "ICR11",
-	0xBC => "ICR22",
-	0xBD => "ICR33",
-	0xBE => "ICR44",
+	0xBC => "ICR12",
+	0xBD => "ICR13",
+	0xBE => "ICR14",
 	0xBF => "ICR15",
 # Specific to LC2412
 	0xC0 => "KEY0",
@@ -210,7 +210,7 @@ foreach my $addr (sort keys %labels) {
 open LABELS, ">input.labels" or die $!;
 
 foreach my $addr (sort keys %labels) {
-    printf LABELS "%s: %.6x\n", $labels{$addr}, $addr
+    printf LABELS "%s: %06x\n", $labels{$addr}, $addr
 	if defined($labels{$addr});
 }