GrafX2 2.9.3227
The ultimate 256-color painting program
Thomson MO/TO

Thomson MO/TO computer range. More...

Enumerations

enum  MOTO_Machine_Type {
  MACHINE_TO7 , MACHINE_TO770 , MACHINE_MO5 , MACHINE_MO6 ,
  MACHINE_TO9 , MACHINE_TO8
}
 to define a specific machine in the Thomson MO/TO range of machines More...
 
enum  MOTO_Graphic_Mode { MOTO_MODE_40col = 0 , MOTO_MODE_80col = 1 , MOTO_MODE_bm4 = 2 , MOTO_MODE_bm16 = 3 }
 Graphic modes available in BASIC 128/512 with CONSOLE,,,,X instruction. More...
 

Functions

int MOTO_Check_binary_file (FILE *f)
 Checks if the file is a Thomson binary file (SAVEM/LOADM format) More...
 
word MOTO_gamma_correct_RGB_to_MOTO (const T_Components *color)
 Convert a RGB value to Thomson BGR value with gamma correction. More...
 
void MOTO_gamma_correct_MOTO_to_RGB (T_Components *color, word bgr)
 Convert a Thomson BGR value to RGB values with gamma correction. More...
 
void MOTO_set_MO5_palette (T_Components *palette)
 Set MO5 Palette. More...
 
void MOTO_set_TO7_palette (T_Components *palette)
 Set TO7/70 Palette. More...
 

Detailed Description

Thomson MO/TO computer range.

The Thomson MO/TO computer range was based on a Motorola 6809 CPU and equiped with Microsoft Basic called Basic 1.0 for the first versions and then Basic 128 or Basic 512 which included a DOS and more features.

The range includes :

Enumeration Type Documentation

◆ MOTO_Machine_Type

to define a specific machine in the Thomson MO/TO range of machines

Enumerator
MACHINE_TO7 

original TO7 with 8 colors

MACHINE_TO770 

the TO7-70 had 16 colors

MACHINE_MO5 
MACHINE_MO6 
MACHINE_TO9 
MACHINE_TO8 

TO8, TO8D and TO9+ are equivalent.

◆ MOTO_Graphic_Mode

Graphic modes available in BASIC 128/512 with CONSOLE,,,,X instruction.

Enumerator
MOTO_MODE_40col 

320x200 16 colors with constraints

MOTO_MODE_80col 

640x200 2 colors

MOTO_MODE_bm4 

320x200 4 colors without constraint

MOTO_MODE_bm16 

160x200 16 colors without constraint

Function Documentation

◆ MOTO_Check_binary_file()

int MOTO_Check_binary_file ( FILE *  f)

Checks if the file is a Thomson binary file (SAVEM/LOADM format)

Parameters
fa file open for reading
Returns
0 if this is not a binary file
>0 if this is a binary file :
1 no further details found
2 This is likely a MAP file (SAVEP/LOADP format)
3 This is likely a TO autoloading picture
4 This is likely a MO5/MO6 autoloading picture

References DECB_Check_binary_file(), GFX2_DEBUG, GFX2_Log(), Read_byte(), Read_bytes(), and Read_word_be().

Referenced by Load_MOTO(), and Test_MOTO().

◆ MOTO_gamma_correct_RGB_to_MOTO()

word MOTO_gamma_correct_RGB_to_MOTO ( const T_Components color)

Convert a RGB value to Thomson BGR value with gamma correction.

References T_Components::B, Config, T_Components::G, GFX2_DEBUG, GFX2_Log(), T_Config::MOTO_gamma, and T_Components::R.

Referenced by Save_MOTO().

◆ MOTO_gamma_correct_MOTO_to_RGB()

void MOTO_gamma_correct_MOTO_to_RGB ( T_Components color,
word  bgr 
)

Convert a Thomson BGR value to RGB values with gamma correction.

References T_Components::B, Config, T_Components::G, T_Config::MOTO_gamma, and T_Components::R.

Referenced by Load_MOTO(), and MOTO_set_TO7_palette().

◆ MOTO_set_MO5_palette()

◆ MOTO_set_TO7_palette()

void MOTO_set_TO7_palette ( T_Components palette)

Set TO7/70 Palette.

The 8 first colors are the TO7 palette

References T_Components::B, T_Components::G, MOTO_gamma_correct_MOTO_to_RGB(), and T_Components::R.

Referenced by Button_Constraint_menu(), and Load_MOTO().