The Cat format is a format very used on the web because it’s the format of the popular software Fa-122, Fa-123. In Fa-124, this format was abandoned for the calculator Casio Graph 85, but it’s always used for others calculator. This format allow many record in a single file, and support all casio data types. Cat files are ended by .cat
This plain text format use Windows new line (CRLF - 10 13 - 0x0D 0x0A).
This format can contain many record in a single file. Here is examples of header records (number in parentheses are not in the record, they refer to the explanations)
%Header Record Format:TXT (1) Communication SW:0 Data Type:PG (2) Capacity: (3) File Name:MyPrgm Group Name: Password: (4) Option1:NL (5) Option2: Option3: Option4: %Data Record Data of the record, as explained below. %End
%Header Record Format:MEM (1) Communication SW:0 Data Type:BU (2) Capacity:63490 (3) Data Name:Backup Group Name: Model:GY358 (4) Option:001038200000FFFFFFFFFFFFFFFF (5) %Data Record Data of the backup, encoded as explained below. %End
%Header Record Format:IMG (1) Communication SW:0 Data Type:PC (2) Height:64 (3) Width:128 (3) Data Name:Picture1 (4) Group Name: Start Position:DR Direction:U Byte Direction:W Bit Weight:F Colors:4 Sheets:1 Option1: Option2: Option3: Option4: %Data Record Data of the picture, like explained below. %End
This section describe how data is encoded in records.
Programs are encoded using text tokens to replace casio special characters and commands. Many of those token begin by \, but some very used token as , -, *, / are not preceded by \. End of line and end character (255 - 0xFF) are replaced by a windows end of line.
You can see a token list.
Backups are memory dumps, encoded in base 16 (each 4 bits is represented by its hexadecimal equivalent), organized in line of 32 characters, with Windows end-of-line.
For picture, the data record is like:
%Data Record Sheet:1 Color:1 00000000000000000000000000000000 [...] 00000000000000000000000000400000 Sheet:1 Color:2 00000000000000000000000000000000 [...] 00000000000000000000000000004F00 Sheet:1 Color:3 00000000000000000000000000000000 [...] 00000000000000000000000000002000 Sheet:1 Color:4 00000000000000000000000000000000 [...] 00000000000000000000000000000000 %End
The picture is in the casio picture format, with a pallet of [orange, blue, green, white]. After each line “Color:”, the corresponding sheet is stored, without the colour byte. The sheet is stored in 32 characters long line. Each two character is a byte, stored in its hexadecimal view (by example, the 0x1F byte is stored by characters 1F). There is 64 line for each sheet.