Bump version and update Changes
[app-scheme79asm.git] / lib / App / Scheme79asm.pm
index 3ad0995a3312799d74bb3588c902f1b7f023b266..19e249c88cc74becdaf00795bd9ef59ce9cb0ae1 100644 (file)
@@ -8,7 +8,7 @@ use Data::Dumper qw/Dumper/;
 use Data::SExpression qw/consp scalarp/;
 use Scalar::Util qw/looks_like_number/;
 
-our $VERSION = '0.002';
+our $VERSION = '0.003';
 
 our %TYPES = (
        LIST => 0,
@@ -126,6 +126,8 @@ sub print_binary16 {
        my ($self, $fh) = @_;
        $fh //= \*STDOUT;
 
+       die "addr_bits + type_bits >= 16\n"if $self->{addr_bits} + $self->{type_bits} > 16;
+
        my $length = @{$self->{memory}};
        print $fh pack('n', $length);
        for (@{$self->{memory}}) {
This page took 0.00902 seconds and 4 git commands to generate.