Class: C64PrgText

Inherits:
C64Prg show all
Defined in:
lib/native_file_types/c64/C64PrgText.rb

Instance Attribute Summary

Attributes inherited from NativeFileType

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

Instance Method Summary collapse

Methods inherited from C64Prg

file_system_file_types, #header_length, #load_address, #to_disassembly, #to_listing

Methods inherited from CbmFile

file_system_file_types, #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, 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 Method Details

#to_screendumpObject



20
21
22
# File 'lib/native_file_types/c64/C64PrgText.rb', line 20

def to_screendump
  file_system_image.host_system.to_screendump(data_without_header)
end

#to_textObject



15
16
17
# File 'lib/native_file_types/c64/C64PrgText.rb', line 15

def to_text
  C64.s_to_ascii(data_without_header)
end