small step to making the assmebly process repeatable (is destructive at the moment)

This commit is contained in:
Torsten Ruger
2014-06-05 10:28:53 +03:00
parent 7cc4c6344c
commit 41a02a7190
3 changed files with 8 additions and 4 deletions

View File

@@ -52,13 +52,14 @@ module Arm
else
raise "invalid operand argument #{right.inspect} , #{inspect}"
end
shift_handling
end
def assemble(io)
build
op = shift_handling
instuction_class = 0b00 # OPC_DATA_PROCESSING
val = shift(@operand , 0)
val |= shift(op , 0) # any barral action, is already shifted
val |= shift(reg_code(@to) , 12)
val |= shift(reg_code(@rn) , 12+4)
val |= shift(@attributes[:update_status] , 12+4+4)#20