fixed arm tests to use ArmMachine

This commit is contained in:
Torsten Ruger
2014-05-07 14:58:38 +03:00
parent 4135c4d2dc
commit ee864fc602
6 changed files with 63 additions and 62 deletions

View File

@@ -16,15 +16,15 @@ module Arm
def define_instruction inst , clazz
super
return
# need to use create_method and move to options hash
# need to use create_method and move to attributes hash
define_method("#{inst}s") do |*args|
instruction clazz , inst , :al , 1 , *args
end
ArmMachine::COND_CODES.keys.each do |suffix|
define_method("#{inst}#{suffix}") do |options|
define_method("#{inst}#{suffix}") do |attributes|
instruction clazz , inst , suffix , 0 , *args
end
define_method("#{inst}s#{suffix}") do |options|
define_method("#{inst}s#{suffix}") do |attributes|
instruction clazz , inst , suffix , 1 , *args
end
end