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"
module Arm
# Many arm instructions may be conditional, where the default condition is always (al)
@@ -84,7 +83,7 @@ module Arm
raise inspect unless reg_code(@rd)
val |= (reg_code(@rd) << 12)
val |= (reg_code(@rn) << 12+4)
val |= (@update_status_flag << 12+4+4)#20
val |= (@attributes[:update_status_flag] << 12+4+4)#20
val |= (op_bit_code << 12+4+4 +1)
val |= (@i << 12+4+4 +1+4)
val |= (instuction_class << 12+4+4 +1+4+1)