Class: ProDosBINFile

Inherits:
ProDosFile show all
Defined in:
lib/native_file_types/apple2/ProDosFile.rb

Constant Summary

Constants inherited from ProDosFile

ProDosFile::PRODOS_FILE_TYPES

Instance Attribute Summary

Attributes inherited from NativeFileType

#aux_code, #contents, #file_system_image, #file_type, #filename, #meta_data

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ProDosFile

#type_description

Methods inherited from NativeFileType

#<=>, #==, all_native_file_types, best_fit, code_for_tests, compatability_score, #data_without_header, file_type_matches?, #full_filename, #header_length, #initialize, is_valid_file_if, load_address, native_file_types_possible_on_file_system, non_matching_score, #to_hex_dump, #to_info_dump, #type_description

Methods included from SubclassTracking

extended

Constructor Details

This class inherits a constructor from NativeFileType

Class Method Details

.file_system_file_typesObject



89
90
91
92
93
# File 'lib/native_file_types/apple2/ProDosFile.rb', line 89

def self.file_system_file_types
  {
    ProDos=>0x06
  }
end

.matching_scoreObject



95
96
97
# File 'lib/native_file_types/apple2/ProDosFile.rb', line 95

def self.matching_score	
  ProDosFile.matching_score+0.1
end

Instance Method Details

#load_addressObject



99
100
101
# File 'lib/native_file_types/apple2/ProDosFile.rb', line 99

def load_address
  aux_code
end

#to_disassemblyObject



103
104
105
# File 'lib/native_file_types/apple2/ProDosFile.rb', line 103

def to_disassembly 
  return Apple2.disassemble(data_without_header,load_address)
end