This is a cache of https://vccplus.brianholman.com/manuals/programming-in-c/. It is a snapshot of the page as it appeared on 2026-11-21T00:00:28.141+0000.
Programming in C on the CoCo 3 · Programming in C on the CoCo 3 — CMOC and Its APIs · VCC Plus
← Manual LibraryVCC Plus 3.7.1 · Reading on the web

Try the exercises in VCC Plus. Example links download files here; open them in the app to work beside the emulator.

The complete book · PDF editionBook 6: Programming in C on the CoCo 3 — CMOC and Its APIs

198 pages · VCC Plus 3.7.1 · Keep a copy to read or print.

Download PDF

At the CoCo workbench

Programming in C
on the CoCo 3

Give Mars a key. Count meals for two planets. Then put a program and its supplies on a floppy someone else can run. Along the way, stop the processor and see exactly what your C code handed it.

Start reading →
Black Tandy FD-502 disk controller cartridge with a silver face label and exposed card edge.
The FD-502 controller. Your C program will ask it for a file by way of the Disk BASIC ROM.

Contents

Start with Earth or Mars. For a library function, jump to Find a call. For the complete Hello Disk project, visit Source shelf and further reading.

  1. 01

    Give Mars a key

    Send a key to the guest and trace it to a greeting in C.

  2. 02

    Give the CoCo its colors

    Follow a palette slot from an attribute call to a colored greeting on the CoCo 3.

  3. 03

    Count cargo for two worlds

    Pack two shipments into a C array and predict what one extra crate will do.

  4. 04

    Hand a function one shipment

    Stop inside a helper, inspect a row through a pointer, then visit its caller.

  5. 05

    Build a disk from a folder

    Trace the work of Make from a bootable disk back to a five-line word list.

  6. 06

    Follow a word through FD0

    Read a disk sector, keep a field log, and jump to a planet’s record in a binary atlas.

  7. 07

    Find the file that went missing

    Catch a filename mismatch by comparing a C local with the guest directory.

  8. 08

    Choose a library for a job

    Draw a pixel, read a joystick and produce a tone with the companion libraries.

  9. 09

    Hand someone a disk they can run

    Deliver a six-word disk to a friend and the source project to another programmer.

  10. A

    Find a call

    Find a target routine, type or constant by task, header or exact symbol.

  11. B

    CMOC at the desk

    Look up CMOC types, storage, build settings and what to check when something goes wrong.

  12. C

    Source shelf and further reading

    Save your own working copies and find the editions behind the lessons.

Original VCC Plus manuals © 2026 Brian K. Holman. Third-party references retain their authors’ copyrights and licenses. Artwork notices. Edition 3.7.1; source and export identity. Printable edition: PDF source and export identity.

A closer look

Open original