2020-07-30 23:58:40 +00:00
|
|
|
[< back to index](../doc_index.md)
|
|
|
|
|
|
|
|
### A note about Color Computer
|
|
|
|
|
2020-08-01 20:20:52 +00:00
|
|
|
#### `coco_rsdos` target
|
|
|
|
|
2020-07-30 23:58:40 +00:00
|
|
|
The `coco_rsdos` target creates binary files that can run on Tandy Color Computer running RS-DOS.
|
|
|
|
|
|
|
|
The compiler output is a raw machine code file with the `.bin` extension, which then has to be put on a disk.
|
|
|
|
You can do it using `imgtool` from the [MAME project](https://www.mamedev.org/):
|
|
|
|
|
|
|
|
imgtool create coco_jvc_rsdos disk_image.dsk
|
|
|
|
imgtool put coco_jvc_rsdos disk_image.dsk compiler_output.bin CO.BIN
|
|
|
|
|
|
|
|
The resulting file can then be loaded and ran using the following commands:
|
|
|
|
|
|
|
|
LOADM"CO":EXEC
|
2020-08-01 20:20:52 +00:00
|
|
|
|
|
|
|
#### `coco_crt` target
|
|
|
|
|
|
|
|
The `coco_crt` target creates 16k cartridge images that can run on Tandy Color Computer or Dragon.
|
|
|
|
|
|
|
|
The program is run directly from ROM;
|
|
|
|
typical ROM programming guidelines apply, see [the ROM vs RAM guide](./rom-vs-ram.md).
|
|
|
|
|
|
|
|
The `main` function is not allowed to return.
|