Sha256: 673ed493a26e5a7fe49042ce60aeda86bcb1d3d6e414cb51fc0e87ee1b9f72f9

Contents?: true

Size: 316 Bytes

Versions: 142

Compression:

Stored size: 316 Bytes

Contents

# vim: set filetype=ruby:

# Subtraction A = A - B, A >= 0 and A >= B
register.A = 10                             # register names have to be uppercase
register.B = 3

label(Sub_B)  { decrement B, Stop, Sub_A }  # labels have to be uppercase as well
label(Sub_A)  { decrement A, Stop, Sub_B }
label(Stop)   { halt }

Version data entries

142 entries across 128 versions & 9 rubygems

Version Path
tins-1.18.0 examples/subtract.reg
tins-1.17.0 examples/subtract.reg
tdiary-5.0.9 vendor/bundle/gems/tins-1.16.3/examples/subtract.reg
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/tins-1.16.3/examples/subtract.reg
tdiary-5.0.7 vendor/bundle/gems/tins-1.16.3/examples/subtract.reg
tins-1.16.3 examples/subtract.reg
tins-1.16.2 examples/subtract.reg
tins-1.16.1 examples/subtract.reg
tins-1.16.0 examples/subtract.reg
tins-1.15.1 examples/subtract.reg
tdiary-5.0.6 vendor/bundle/gems/tins-1.15.0/examples/subtract.reg
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/tins-1.6.0/examples/subtract.reg
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/tins-1.6.0/examples/subtract.reg
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/tins-1.6.0/examples/subtract.reg
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/tins-1.6.0/examples/subtract.reg
tins-1.15.0 examples/subtract.reg
tdiary-5.0.5 vendor/bundle/gems/tins-1.13.2/examples/subtract.reg
tdiary-5.0.5 vendor/bundle/gems/tins-1.14.0/examples/subtract.reg
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/tins-1.13.2/examples/subtract.reg
tins-1.14.0 examples/subtract.reg