Class: AcornBinary

Inherits:
NativeFileType show all
Defined in:
lib/native_file_types/acornbbc/AcornBinary.rb

Instance Attribute Summary collapse

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 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, matching_score, 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

Instance Attribute Details

#execute_addressObject

Returns the value of attribute execute_address.



4
5
6
# File 'lib/native_file_types/acornbbc/AcornBinary.rb', line 4

def execute_address
  @execute_address
end

Class Method Details

.file_system_file_typesObject



6
7
8
9
10
# File 'lib/native_file_types/acornbbc/AcornBinary.rb', line 6

def self.file_system_file_types
  {
    AcornDFS=>:any
  }
end

Instance Method Details

#load_addressObject



12
13
14
# File 'lib/native_file_types/acornbbc/AcornBinary.rb', line 12

def load_address
    aux_code
end

#to_disassemblyObject



20
21
22
23
24
# File 'lib/native_file_types/acornbbc/AcornBinary.rb', line 20

def to_disassembly
    
  return AcornBBC.disassemble(contents,load_address)     

end

#to_listingObject



16
17
18
# File 'lib/native_file_types/acornbbc/AcornBinary.rb', line 16

def to_listing
	self.to_disassembly
end