Class: Trs80
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
extended
Class Method Details
.default_background_colour ⇒ Object
53
54
55
|
# File 'lib/host_systems/Trs80.rb', line 53
def self.default_background_colour
PNG::Color::Black
end
|
.default_foreground_colour ⇒ Object
49
50
51
|
# File 'lib/host_systems/Trs80.rb', line 49
def self.default_foreground_colour
PNG::Color::Green
end
|
.font_data_filename ⇒ Object
24
25
26
|
# File 'lib/host_systems/Trs80.rb', line 24
def self.font_data_filename
File.dirname(__FILE__) +"/TRS81-3.FNT"
end
|
.font_height ⇒ Object
45
46
47
|
# File 'lib/host_systems/Trs80.rb', line 45
def self.font_height
12
end
|
.font_width ⇒ Object
41
42
43
|
# File 'lib/host_systems/Trs80.rb', line 41
def self.font_width
8
end
|
.full_name ⇒ Object
11
12
13
|
# File 'lib/host_systems/Trs80.rb', line 11
def self.full_name
"Tandy TRS-80 Model I/III"
end
|
.line_break_chars ⇒ Object
28
29
30
|
# File 'lib/host_systems/Trs80.rb', line 28
def self.line_break_chars
[0x0D]
end
|
.screen_columns ⇒ Object
37
38
39
|
# File 'lib/host_systems/Trs80.rb', line 37
def self.screen_columns
64
end
|
.screen_rows ⇒ Object
33
34
35
|
# File 'lib/host_systems/Trs80.rb', line 33
def self.screen_rows
16
end
|
.start_track ⇒ Object
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
|