# File lib/FileSystemImage.rb, line 141
def catalog
  s="\n%-32s %-16s %04s   %s\n\n" % ["FILENAME","TYPE","LENGTH","LOAD ADDRESS"]
  self.files.sort.each do |file|      
    raise "bogus file '#{file.filename}'" if file.contents.nil?
    s<<"%-32s %-16s $%04x    $%04x\n" % [file.filename,file.type_description,file.contents.length,file.load_address]
  end
  s
end