remove singleton in arm machine and use class methods

This commit is contained in:
Torsten Ruger
2014-10-04 17:34:51 +03:00
parent d7d2622d7f
commit 7968cadaf9
3 changed files with 11 additions and 44 deletions

View File

@ -8,7 +8,7 @@ require_relative '../helper'
module ArmHelper
# need Assembler and a block (see those classes)
def setup
@machine = Arm::ArmMachine.new
@machine = Arm::ArmMachine
end
# code is what the generator spits out, at least one instruction worth (.first)