named the first intruction constructor argument

This commit is contained in:
Torsten Ruger
2014-05-15 19:41:51 +03:00
parent b4c79d218f
commit a0f0d08e81
13 changed files with 78 additions and 77 deletions

View File

@@ -6,15 +6,15 @@ module Arm
include Arm::Constants
include LogicHelper
def initialize(attributes)
super(attributes)
def initialize(left , attributes)
super(left , attributes)
@attributes[:update_status_flag] = 0 if @attributes[:update_status_flag] == nil
@attributes[:condition_code] = :al if @attributes[:condition_code] == nil
@attributes[:opcode] = attributes[:opcode]
@operand = 0
@i = 0
@rd = @attributes[:left]
@rd = @left
@rn = :r0 # register zero = zero bit pattern
end