started coding, but

This commit is contained in:
Torsten Ruger 2014-08-23 20:25:19 +03:00
parent f0efb1e0d9
commit 495df14e19

View File

@ -6,7 +6,13 @@ module Virtual
def run block
block.codes.dup.each do |code|
next unless code.is_a? Virtual::Set
raise "Start coding"
if( code.to.is_a? NewMessageSlot)
to = RegisterReference.new(:r0)
tmp = RegisterReference.new(:r5)
move = RegisterMachine.mov( to , tmp , code.index )
else
raise "Start coding #{code.inspect}"
end
end
end
end