better solution for initial jump

This commit is contained in:
Torsten Ruger
2014-10-07 12:01:33 +03:00
parent 5c90ad83e0
commit b7164b354d
4 changed files with 14 additions and 9 deletions

View File

@ -74,7 +74,7 @@ module Arm
operand = calculate_u8_with_rr( first )
raise "no fit for #{right}" unless operand
immediate = 1
@extra = ::Register::RegisterMachine.instance.add( to , to , (right.integer & 0xFF) )
@extra = ArmMachine.add( to , to , (right.integer & 0xFF) )
#TODO: this is still a hack, as it does not encode all possible values. The way it _should_ be done
# is to check that the first part is doabe with u8_with_rr AND leaves a u8 remainder
end