CPC: save autoload .SCR

with a .BAS if needed
This commit is contained in:
Thomas Bernard
2019-12-22 02:21:34 +01:00
parent 5b5bdf54dc
commit 22b6c2439f
5 changed files with 271 additions and 11 deletions

View File

@@ -109,6 +109,11 @@ void ZX_Spectrum_set_palette(T_Components * palette);
*/
void CPC_set_HW_palette(T_Components * palette);
/**
* Check if the color is likely to be a CPC RGB tri level color
*/
int CPC_is_CPC_old_color(T_Components * col);
/**
* Set 16 color default Amstrad CPC BASIC palette
*
@@ -147,6 +152,11 @@ byte CPC_Firmware_to_Hardware_color(byte fw_color);
*/
int CPC_check_AMSDOS(FILE * file, word * loading_address, word * exec_address, unsigned long * file_length);
/**
* Write AMSDOS header
*/
int CPC_write_AMSDOS_header(FILE * file, const char * filename, const char * ext, byte type, word load_address, word save_address, word file_length);
/** @}*/
/** @defgroup decb DECB binary format