use fake memory
fix integer offset bug (which only didn’t cause errors as fixnums are still an order too big and the famous +1 error hit the empty space)
This commit is contained in:
@ -5,8 +5,7 @@ module Parfait
|
||||
|
||||
def self.allocate
|
||||
r = super
|
||||
puts "#{self.memory_size}"
|
||||
r.instance_variable_set(:@memory , [])
|
||||
r.instance_variable_set(:@memory , Risc::FakeMemory.new(self.type_length , self.memory_size))
|
||||
r
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user