GrafX2 2.9.3227
The ultimate 256-color painting program
|
MODE2 : 256x192 Support for the MSX pictures. More...
Functions | |
static int | Check_MSX_BSAVE_format (FILE *file, word *begin, word *end, word *exec) |
Check if the file is in the MSX BSAVE format. More... | |
void | Test_MSX (T_IO_Context *context, FILE *file) |
void | Load_MSX (T_IO_Context *context) |
Load a MSX Screen 2 picture. More... | |
void | Save_MSX (T_IO_Context *context) |
Save MSX .SC2 file. More... | |
MODE2 : 256x192 Support for the MSX pictures.
Check if the file is in the MSX BSAVE format.
Reads 7 bytes.
file | |
begin | load address |
end | end address |
exec | execution address for BLOAD ,R |
References NULL, Read_byte(), and Read_word_le().
Referenced by Load_MSX(), and Test_MSX().
void Test_MSX | ( | T_IO_Context * | context, |
FILE * | file | ||
) |
References Check_MSX_BSAVE_format(), File_error, GFX2_DEBUG, and GFX2_Log().
void Load_MSX | ( | T_IO_Context * | context | ) |
Load a MSX Screen 2 picture.
TMS9918 Mode II VRAM layout :
References Check_MSX_BSAVE_format(), T_Config::Clear_palette, Config, File_error, File_length_file(), FORMAT_MSX, GFX2_DEBUG, GFX2_Log(), MSX_set_palette(), Open_file_read(), T_IO_Context::Palette, PIXEL_SIMPLE, Pre_load(), Read_bytes(), Set_loading_layer(), Set_pixel(), and T_IO_Context::Transparent_color.
void Save_MSX | ( | T_IO_Context * | context | ) |
Save MSX .SC2 file.
Uses the BSAVE/BLOAD file format. equivalent to BSAVE "FILE.SC2",&H0,&H37FF,S
The MSX pictures are 256x192 pixels with a 15 colors fixed palette. Color #0 is transparent.
References File_error, Get_pixel(), GFX2_Log(), GFX2_WARNING, NULL, Open_file_write(), Write_byte(), Write_bytes(), and Write_word_le().