fix the initial jump

This commit is contained in:
Torsten Ruger
2015-06-10 10:43:50 +02:00
parent 1c8ed44e84
commit 6f111a5ae0
5 changed files with 20 additions and 13 deletions

View File

@ -1,14 +1,19 @@
module Register
# This starts the register machine machine at the given function.
# The implementation is most likely a jump/branch , but since we have the extra layer
# we make good use of it, ie give things descriptive names (what they do, not how)
class RegisterMain < Instruction
include Positioned
def initialize method
@method = method
end
attr_reader :method
def word_length
4
end
end
end
end