Fixing new parfait boot process

mostly about setting the types to existing objects. 
Then after space is in place, it is set automatically

also a fair bit of misc in the commit
This commit is contained in:
2019-09-23 00:07:30 +03:00
parent e61c5d4a55
commit 7b40bb9106
16 changed files with 70 additions and 73 deletions

View File

@ -10,7 +10,7 @@ module Parfait
attr_reader :indexed_length , :next_list
def self.type_length
3 # 0 type , 1 length , 2 - next_list
3 # 0 type , 1 indexed_length , 2 - next_list
end
def self.data_length
self.memory_size - self.type_length - 1
@ -19,6 +19,7 @@ module Parfait
def initialize
super
@indexed_length = 0
@next_list = nil
end
def data_length