rename length to mem_length and suffer the consequences

This commit is contained in:
Torsten Ruger
2014-09-17 12:04:54 +03:00
parent 79e42003b2
commit e4474e7e2c
7 changed files with 27 additions and 30 deletions

View File

@ -17,7 +17,7 @@ module Arm
@is_load = opcode.to_s[0] == "l" ? 1 : 0 #L (load) flag
end
def assemble(io , assembler )
def assemble(io )
# don't overwrite instance variables, to make assembly repeatable
rn = @rn
operand = @operand

View File

@ -72,7 +72,10 @@ module Arm
immediate = 1
raise "hmm"
else
raise "cannot fit numeric literal argument in operand #{right.inspect}"
operand = right.integer / 256
immediate = 1
# raise "cannot fit numeric literal argument in operand #{right.inspect}"
end
elsif (right.is_a?(Symbol) or right.is_a?(Virtual::Integer))
operand = reg_code(right) #integer means the register the integer is in (otherwise constant)