Class: C64GeosBASICFile

Inherits:
C64GeosFile show all
Defined in:
lib/native_file_types/c64/C64GeosFile.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 C64GeosFile

#contents, #header_filename, #icon_background, #icon_bitmap, #icon_foreground, #icon_format, #icon_height, #icon_tag, #icon_width, #info_block, #meta_data, #parent_application, #record_nos, #to_hex_dump, #to_icon, #type_description

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

#load_addressObject



146
147
148
149
# File 'lib/native_file_types/c64/C64GeosFile.rb', line 146

def load_address
	return 0 if contents.length<2
	contents[0]+contents[1]*256
end

#to_listingObject



151
152
153
# File 'lib/native_file_types/c64/C64GeosFile.rb', line 151

def to_listing
	C64BasicPrg.list_buffer(@contents[1])
end