kolibrios-gitea/programs/network/netsurf/libcss/test/data/parse/makeopv.pl
Dmitry Pereverzev (SoUrcerer) 370da47fa0 Netsurf initial port (still needs native ui and cURL)
git-svn-id: svn://kolibrios.org@3584 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-01 17:14:14 +00:00

12 lines
227 B
Perl
Executable File

#!/usr/bin/perl
use warnings;
use strict;
die "Usage: makeopv.pl <opcode> <flags> <value>\n" if (@ARGV != 3);
my ($opcode, $flags, $value) = @ARGV;
printf("0x%.8x\n", oct($opcode) | oct($flags) << 10 | oct($value) << 18);