Method: Wardite::Instance#memory_section

Defined in:
lib/wardite.rb

#memory_sectionObject



110
111
112
113
114
115
116
117
118
119
# File 'lib/wardite.rb', line 110

def memory_section
  sec = @sections.find{|s| s.code == Const::SectionMemory }
  if !sec
    return nil
  end
  if !sec.is_a?(MemorySection)
    raise(GenericError, "[BUG] found invalid memory section")
  end
  sec
end