forked from KolibriOS/kolibrios
370da47fa0
git-svn-id: svn://kolibrios.org@3584 a494cfbc-eb01-0410-851d-a64ba20cac60
12 lines
227 B
Perl
Executable File
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);
|
|
|