add initial jump instruction

This commit is contained in:
Torsten Ruger
2014-10-06 19:57:44 +03:00
parent e1aa3fd843
commit 5c90ad83e0
5 changed files with 32 additions and 1 deletions

View File

@ -41,7 +41,7 @@ module Register
link
@stream = StringIO.new
mid , main = @objects.find{|k,objekt| objekt.is_a?(Virtual::CompiledMethod) and (objekt.name == :__init__ )}
initial_jump = RegisterMachine.instance.b( main )
initial_jump = RegisterMain.new( main )
initial_jump.set_position( 0)
initial_jump.assemble( @stream )
@objects.each_value do |objekt|