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 # database
db db
#salama copied lib (for reloads)
app/main/lib
# rdoc generated # rdoc generated
rdoc rdoc

View File

@ -42,7 +42,9 @@ module Main
c = Volt::Model.new :name => name c = Volt::Model.new :name => name
page._classes << c page._classes << c
end 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 end
def fill_regs def fill_regs
register_names = (0..8).collect {|i| "r#{i}"} register_names = (0..8).collect {|i| "r#{i}"}