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:
parent
998d5f8b90
commit
e1c19dee80
@ -86,7 +86,7 @@ module Arm
|
||||
end
|
||||
end
|
||||
def to_s
|
||||
"#{opcode} #{@first.to_asm} #{super}"
|
||||
"#{opcode} #{@first} #{super}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user