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.25.0 examples/subtract.reg
tdiary-5.1.1 vendor/bundle/ruby/2.7.0/gems/tins-1.24.1/examples/subtract.reg
tins-1.24.1 examples/subtract.reg
tins-1.24.0 examples/subtract.reg
tins-1.23.0 examples/subtract.reg
tdiary-5.1.0 vendor/bundle/gems/tins-1.22.2/examples/subtract.reg
tins-1.22.2 examples/subtract.reg
tins-1.22.1 examples/subtract.reg
tins-1.22.0 examples/subtract.reg
tins-1.21.1 examples/subtract.reg
tins-1.21.0 examples/subtract.reg
tins-1.20.3 examples/subtract.reg
tdiary-5.0.13 vendor/bundle/gems/tins-1.20.2/examples/subtract.reg
tdiary-5.0.12.1 vendor/bundle/gems/tins-1.20.2/examples/subtract.reg
tdiary-5.0.11 vendor/bundle/gems/tins-1.20.2/examples/subtract.reg
tdiary-5.0.11 vendor/bundle/gems/tins-1.16.3/examples/subtract.reg
tins-1.20.2 examples/subtract.reg
tins-1.20.1 examples/subtract.reg
tins-1.20.0 examples/subtract.reg
tins-1.19.0 examples/subtract.reg