Class: NADOLBinaryFile
Overview
a file on a NADOL dsk that does not appear to be in NADOL tokenised format
Constant Summary
Constants inherited from DSKFile
Instance Attribute Summary
Attributes inherited from DSKFile
Instance Method Summary collapse
- #can_be_picture? ⇒ Boolean
- #disassembly(start_address = 0x8000) ⇒ Object
- #to_png(pallete_mode = :amber) ⇒ Object
Methods inherited from NADOLFile
catalog_filename, #catalog_filename, #file_extension
Methods inherited from DSKFile
#==, #buffer_as_applesoft_file, #file_extension, #hex_dump, #initialize, #length_in_sectors, #to_ascii, #to_s
Constructor Details
This class inherits a constructor from DSKFile
Instance Method Details
#can_be_picture? ⇒ Boolean
40 41 42 |
# File 'lib/NADOLFile.rb', line 40 def can_be_picture? HGR.can_be_hgr_screen?(@contents) end |
#disassembly(start_address = 0x8000) ⇒ Object
35 36 37 38 |
# File 'lib/NADOLFile.rb', line 35 def disassembly(start_address=0x8000) require 'D65' D65.disassemble(@contents,start_address) end |
#to_png(pallete_mode = :amber) ⇒ Object
44 45 46 |
# File 'lib/NADOLFile.rb', line 44 def to_png(pallete_mode=:amber) HGR.buffer_to_png(@contents) end |