← All spotlightsPrograms / Features

Spotlight › Written in C

CWORD and the C toolchain

A SmallerC application using the os8088 package ABI, with menu handlers in an on-demand overlay.

Microsoft Word
A word processor open on the os8088 desktop showing a welcome document with a bold heading, bold, italic and underlined words in the text, a ribbon and a ruler above the text and a status bar below it.
WELCOME.RTF in CWORD.
C source
8,350 lines
Executable
54,450 bytes
Target CPU
4.77 MHz 8088

01 / Compiler and ABI

Compiler and ABI

SmallerC emits assembly that is integrated into the NASM package build. CWORD uses the same loader and application API as assembly packages. The compiler is an optional host dependency installed by tools/setup-cc.sh.

The user interface follows Word for Windows 1.1a resources. Microsoft's source was released by the Computer History Museum in 2014 for non-commercial use; CWORD is a separate implementation, not that source recompiled.

02 / Editor captures

Editor captures

Page view
The same document in page view. The text now sits in a narrower column with the edges of the sheet drawn as vertical lines down either side, and the ruler has shrunk to match the column.
Draft and page layouts.
The Font list
The Font box on the ribbon dropped open over the document, listing Pica, Archivo, Charter, Courier, Helv, Inconsol, Jetbrain, Noto, Robomono, Tallx and Times.
Installed font discovery.
The View menu
The View menu pulled down. Draft has a tick beside it. Page, Ribbon, Ruler and Status Bar are available. Outline, Footnotes, Annotations, Field Codes, Preferences and Short Menus are greyed out.
Implemented view commands.
The CWORD disk
The os8088 file window open on drive B, listing CWORD.O88 at 35,886 bytes, CWORD.OVL at 18,564 bytes, a DOCS folder and WELCOME.RTF at 2,117 bytes.
Resident package and on-demand overlay.

03 / C subset and segment rules

C subset and segment rules

Near pointers address the package data segment; stack storage is in a different segment. The build rejects taking addresses of automatic variables, struct copies and by-value struct passing/returns in this toolchain. Use static storage where an address must escape.

This configuration provides neither C floating-point nor 32-bit long arithmetic. That is a toolchain/runtime constraint, not an intrinsic 8086 restriction. Functions are checked against a 96-byte local-stack limit within the 256-byte task stack; the recorded CWORD maximum is 26 bytes.

04 / Resident code and overlay

Resident code and overlay

The package has a roughly 60KB resident budget under the current os8088 ABI. Its editor and redraw path remain resident; file dialogs, conversion, search, sorting and other menu commands occupy the recorded 18,564-byte CWORD.OVL.

A missing overlay leaves the resident editor available and makes affected commands report an error. Keep the two files together. The package budget is an OS/ABI limit, not the total memory an 8086 can address.

05 / Implemented features

Implemented features

CWORD supports character and paragraph formatting, selection, search/replace, sorting and RTF interchange. It is separate from the assembly WORD package, which writes binary Word documents. A TextEdit-generated RTF was included in interoperability testing.

Printing, spelling, thesaurus, macros, outlining, footnotes, tables, headers/footers and Undo are absent in the captured build. BIOS key aliases also prevent distinguishing Ctrl-H/I/M from Backspace/Tab/Enter through this input path; the corresponding commands remain in the UI.

06 / Run or build CWORD

Run or build CWORD

Use the dedicated CWORD image or its folder on the everything set. Keep CWORD.O88 and CWORD.OVL together; WELCOME.RTF exercises formatting and interchange.