fix object loading

by (ahem) copying the code from MoveInst.
This commit is contained in:
Torsten Ruger
2015-06-26 20:36:00 +03:00
parent 5539d8fe32
commit d0d857bbe0
2 changed files with 27 additions and 4 deletions

View File

@ -7,7 +7,7 @@ module Arm
constant = code.constant
if constant.is_a?(Parfait::Object) or constant.is_a? Symbol
load = ArmMachine.add( code.register , :pc , constant )
load = ArmMachine.add( code.register , constant )
else
load = ArmMachine.mov( code.register , code.constant )
end