first oo program to compile. But no worries, there is still work left to be done

This commit is contained in:
Torsten Ruger
2014-06-05 18:17:00 +03:00
parent f523d0946d
commit c59f22f11f
13 changed files with 68 additions and 27 deletions

View File

@ -43,7 +43,7 @@ module Arm
elsif (op_with_rot = calculate_u8_with_rr(right))
operand = op_with_rot
immediate = 1
raise "hmm"
# raise "hmm"
else
raise "cannot fit numeric literal argument in operand #{right.inspect}"
end

View File

@ -12,10 +12,10 @@ module Arm
@immediate = 0
@rn = :r0 # register zero = zero bit pattern
raise inspect if to.is_a?(Vm::Value) and
from.is_a?(Vm::Value) and
!@attributes[:shift_lsr] and
to.register == from.register
# raise inspect if to.is_a?(Vm::Value) and
# from.is_a?(Vm::Value) and
# !@attributes[:shift_lsr] and
# to.register == from.register
end
# arm intrucions are pretty sensible, and always 4 bytes (thumb not supported)