summaryrefslogtreecommitdiff
path: root/test/data/parse
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/parse')
-rwxr-xr-xtest/data/parse/makefixed.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/data/parse/makefixed.pl b/test/data/parse/makefixed.pl
new file mode 100755
index 0000000..712784f
--- /dev/null
+++ b/test/data/parse/makefixed.pl
@@ -0,0 +1,11 @@
+#!/usr/bin/perl
+
+use warnings;
+use strict;
+
+die "Usage: makefixed.pl <value>\n" if (@ARGV != 1);
+
+my $val = shift @ARGV;
+
+printf("0x%.8x\n", $val * (1 << 10));
+