diff --git a/.gitignore b/.gitignore index 8f49fbf..6793344 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,6 @@ # database db -#salama copied lib (for reloads) -app/main/lib - # rdoc generated rdoc diff --git a/app/main/controllers/main_controller.rb b/app/main/controllers/main_controller.rb index e757c95..9b65957 100644 --- a/app/main/controllers/main_controller.rb +++ b/app/main/controllers/main_controller.rb @@ -42,7 +42,9 @@ module Main c = Volt::Model.new :name => name page._classes << c end - page._block = BlockModel.new Virtual.machine.init + b = Virtual.machine.init + page._block = BlockModel.new b + page._source = InstructionModel.new b.codes.first.source end def fill_regs register_names = (0..8).collect {|i| "r#{i}"}