Class: Trs80

Inherits:
HostSystem show all
Defined in:
lib/host_systems/Trs80.rb

Constant Summary

Constants inherited from HostSystem

HostSystem::MAX_SCREENDUMP_LINES

Class Method Summary collapse

Methods inherited from HostSystem

all_host_systems, default_screen_width, font_data, hex_dump, max_screen_width, pixels_between_characters, possible_file_systems, s_to_ascii, to_screendump

Methods included from SubclassTracking

extended

Class Method Details

.default_background_colourObject



53
54
55
# File 'lib/host_systems/Trs80.rb', line 53

def self.default_background_colour
  PNG::Color::Black
end

.default_foreground_colourObject



49
50
51
# File 'lib/host_systems/Trs80.rb', line 49

def self.default_foreground_colour  
    PNG::Color::Green
end

.font_data_filenameObject



24
25
26
# File 'lib/host_systems/Trs80.rb', line 24

def self.font_data_filename
File.dirname(__FILE__) +"/TRS81-3.FNT"
end

.font_heightObject



45
46
47
# File 'lib/host_systems/Trs80.rb', line 45

def self.font_height
  12
end

.font_widthObject



41
42
43
# File 'lib/host_systems/Trs80.rb', line 41

def self.font_width
  8
end

.full_nameObject



11
12
13
# File 'lib/host_systems/Trs80.rb', line 11

def self.full_name
    "Tandy TRS-80 Model I/III"
end

.line_break_charsObject



28
29
30
# File 'lib/host_systems/Trs80.rb', line 28

def self.line_break_chars
  [0x0D]
end

.screen_columnsObject



37
38
39
# File 'lib/host_systems/Trs80.rb', line 37

def self.screen_columns
  64
end

.screen_rowsObject



33
34
35
# File 'lib/host_systems/Trs80.rb', line 33

def self.screen_rows
  16
end

.start_trackObject



16
17
18
# File 'lib/host_systems/Trs80.rb', line 16

def self.start_track
    0
end

.to_ascii(b) ⇒ Object



20
21
22
# File 'lib/host_systems/Trs80.rb', line 20

def self.to_ascii(b)    
  b.chr
end