Bump version and update Changes
[app-scheme79asm.git] / lib / App / Scheme79asm.pm
index 3ad0995a3312799d74bb3588c902f1b7f023b266..9b82af6b48acc40233c010736fc9c17f430fed57 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.004';
 
 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}}) {
@@ -313,6 +315,13 @@ Parse a sequence of S-expressions and lay it out in memory.
 Can be called multiple times to lay out multiple sequences of
 S-expressions one after another.
 
+=item $asm->B<process>(I<$sexp>)
+
+Given an already-parsed sexp (meaning a
+L<Data::SExpression> object), lay it out in memory.
+Can be called multiple times to lay out multiple sequences of
+S-expressions one after another.
+
 =item $asm->B<finish>
 
 Move the last pointer to position 5, and put the free pointer at
This page took 0.010454 seconds and 4 git commands to generate.