X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FApp%2FScheme79asm.pm;h=6a2b4857864f979147b8748d1d6c93e1b53f1b32;hb=6c9fb71ea4cea174575c2f09f8d12ae0c95c8457;hp=fb99ee33ef5a51fc4bd05ddbaf25896fdde4a929;hpb=1756f22980afffd139ded7742af489196f928c1a;p=app-scheme79asm.git diff --git a/lib/App/Scheme79asm.pm b/lib/App/Scheme79asm.pm index fb99ee3..6a2b485 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.005001'; 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}