GrafX2 2.9.3227
The ultimate 256-color painting program
DECB binary format

The DECB binary format was used on 6809 based machines : Tandy CoCo, Dragon 32/64 and Thomson MO/TO. More...

Functions

int DECB_BIN_Add_Chunk (FILE *f, word size, word address, const byte *data)
 Add a chunk to a DECB binary file. More...
 
int DECB_BIN_Add_End (FILE *f, word address)
 Add a chunk to a DECB binary file. More...
 
int DECB_Check_binary_file (FILE *f)
 Check if the file is in the DECB Binary format. More...
 

Detailed Description

The DECB binary format was used on 6809 based machines : Tandy CoCo, Dragon 32/64 and Thomson MO/TO.

DECB stand for Disk Extended Color Basic and was a version of the Microsoft BASIC-69 (their basic for Motorola 6809)

Function Documentation

◆ DECB_BIN_Add_Chunk()

int DECB_BIN_Add_Chunk ( FILE *  f,
word  size,
word  address,
const byte data 
)

Add a chunk to a DECB binary file.

Parameters
fopen file
sizesize of the memory chunk
addressload address of the memory chunk
datadata to add in memory chunk
Returns
true for success

References Write_byte(), Write_bytes(), and Write_word_be().

Referenced by Save_MOTO().

◆ DECB_BIN_Add_End()

int DECB_BIN_Add_End ( FILE *  f,
word  address 
)

Add a chunk to a DECB binary file.

Parameters
fopen file
addressrun address of the binary file (LOADM,,R)
Returns
true for success

References Write_byte(), and Write_word_be().

Referenced by Save_MOTO().

◆ DECB_Check_binary_file()

int DECB_Check_binary_file ( FILE *  f)

Check if the file is in the DECB Binary format.

Parameters
fopen file
Returns
1 if the file is in DECB Binary format, or else 0

References Read_byte(), and Read_word_be().

Referenced by MOTO_Check_binary_file().