get vm source on screen

This commit is contained in:
Torsten Ruger 2015-07-18 11:22:42 +03:00
parent 4305ddaf1d
commit 19a0b7f9fe
2 changed files with 3 additions and 4 deletions

3
.gitignore vendored
View File

@ -1,9 +1,6 @@
# database
db
#salama copied lib (for reloads)
app/main/lib
# rdoc generated
rdoc

View File

@ -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}"}