CO File Format

From Bitchin100 DocGarden
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The structure of a Model T CO file is very simple:

START LENGTH ENTRY EXECUTABLE DATA...

Where START, LENGTH and ENTRY are 16-bit words in little-endian (Intel) byte order.

START - Where the program is ORG'd to run from.
LENGTH - Size of executable data, this does not include the header(6 bytes), just the length of EXECUTABLE DATA.
ENTRY - Where the program will be entered (entry point).
EXECUTABLE DATA - 8085 machine code ORG'ed at START.