moving many attributes into the attributes hash, but not nearly all

This commit is contained in:
Torsten Ruger
2014-05-10 15:59:46 +03:00
parent 8faf0ba17f
commit 9e5b60dfab
10 changed files with 49 additions and 90 deletions

View File

@@ -1,4 +1,3 @@
require_relative "instruction"
require_relative "logic_helper"
module Arm
@@ -9,9 +8,9 @@ module Arm
def initialize(attributes)
super(attributes)
@update_status_flag = 0
@condition_code = :al
@opcode = attributes[:opcode]
@attributes[:update_status_flag] = 0
@attributes[:condition_code] = :al
@attributes[:opcode] = attributes[:opcode]
@operand = 0
@i = 0