X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FApp%2FScheme79asm.pm;h=602afd1484316615b334b804e6af01975f5982b6;hb=2aba73d532a55cd0cfa7a32b1e9270a15b0b53d7;hp=fb99ee33ef5a51fc4bd05ddbaf25896fdde4a929;hpb=1756f22980afffd139ded7742af489196f928c1a;p=app-scheme79asm.git diff --git a/lib/App/Scheme79asm.pm b/lib/App/Scheme79asm.pm index fb99ee3..602afd1 100644 --- a/lib/App/Scheme79asm.pm +++ b/lib/App/Scheme79asm.pm @@ -10,7 +10,7 @@ use Data::Dumper qw/Dumper/; use Data::SExpression qw/consp scalarp/; use Scalar::Util qw/looks_like_number/; -our $VERSION = '0.004'; +our $VERSION = '0.005'; our %TYPES = ( LIST => 0, @@ -71,6 +71,7 @@ sub process { die "Type too large: $type\n" if $type >= (1 << $self->{type_bits}); die "Addr too large: $addr\n" if $addr >= (1 << $self->{addr_bits}); my $result = ($type << $self->{addr_bits}) + $addr; + unless ($location) { $self->{freeptr}++; $location = $self->{freeptr}