remove old to_asm

very strange that is was called in 1.9 but not 2.0
2.0 seems to delay interpolating strings
This commit is contained in:
Torsten Ruger 2015-07-18 12:15:07 +03:00
parent 998d5f8b90
commit e1c19dee80
4 changed files with 5 additions and 5 deletions

View File

@ -86,7 +86,7 @@ module Arm
end
end
def to_s
"#{opcode} #{@first.to_asm} #{super}"
"#{opcode} #{@first} #{super}"
end
end
end

View File

@ -99,7 +99,7 @@ module Arm
[]
end
def to_s
"#{opcode} #{@left.to_asm} , #{@right.to_asm} #{super}"
"#{opcode} #{@left} , #{@right} #{super}"
end
end
end

View File

@ -73,7 +73,7 @@ module Arm
@first
end
def to_s
"#{opcode} [#{@first.collect {|f| f.to_asm}.join(',') }] #{super}"
"#{opcode} [#{@first.join(',') }] #{super}"
end
end

View File

@ -5,8 +5,8 @@ require_relative '../helper'
# tests are named as per assembler code, ie test_mov testing mov instruction
# adc add and bic eor orr rsb rsc sbc sub mov mvn cmn cmp teq tst b call bx swi strb
module ArmHelper
# need Assembler and a block (see those classes)
module ArmHelper
# need Assembler and a block (see those classes)
def setup
@machine = Arm::ArmMachine
end