update to use parfait not virtual

more ripples
reverting to integers (not virtual::integer)
This commit is contained in:
Torsten Ruger
2015-05-29 12:33:40 +03:00
parent c28430698c
commit a46b2d5c56
7 changed files with 49 additions and 66 deletions

View File

@ -36,7 +36,7 @@ module Arm
operand = @operand
immediate = @immediate
right = @from
if right.is_a?(Virtual::ObjectConstant)
if right.is_a?(Parfait::Object)
r_pos = right.position
# do pc relative addressing with the difference to the instuction
# 8 is for the funny pipeline adjustment (ie pc pointing to fetch and not execute)
@ -44,7 +44,7 @@ module Arm
puts "Position #{r_pos} from #{self.position} = #{right}"
rn = :pc
end
if (right.is_a?(Virtual::IntegerConstant))
if (right.is_a?(Numeric))
if (right.fits_u8?)
# no shifting needed
operand = right.integer