rename length to mem_length and suffer the consequences
This commit is contained in:
@ -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
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user