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
dslkit-0.2.0 examples/subtract.reg
dslkit-0.2.2 examples/subtract.reg