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.38.0 examples/subtract.reg
tins-1.37.1 examples/subtract.reg
tins-1.37.0 examples/subtract.reg
tins-1.36.1 examples/subtract.reg
tins-1.36.0 examples/subtract.reg
tins-1.35.0 examples/subtract.reg
tins-1.34.0 examples/subtract.reg
tins-1.33.0 examples/subtract.reg
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/tins-1.31.1/examples/subtract.reg
tins-1.32.1 examples/subtract.reg
tins-1.32.0 examples/subtract.reg
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/tins-1.31.1/examples/subtract.reg
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/tins-1.31.1/examples/subtract.reg
tins-1.31.1 examples/subtract.reg
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/tins-1.31.0/examples/subtract.reg
tins-1.31.0 examples/subtract.reg
tins-1.30.0 examples/subtract.reg
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/tins-1.29.1/examples/subtract.reg
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/tins-1.29.1/examples/subtract.reg
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/tins-1.29.1/examples/subtract.reg