DataMuseum.dk

Presents historical artifacts from the history of:

Commodore CBM-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Commodore CBM-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦6275a6eb9⟧ TextFile

    Length: 186 (0xba)
    Types: TextFile
    Notes: UNIX file
    Names: »axis.c«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦2d53db1df⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »frankh/gsrc/axis.c« 

TextFile

#include	"graph.h"



axis()
{
	long	x1, x2, y1, y2;
	x1 = XMAX;
	y1 = YMAX;
	x2 = x1 / 2.0;
	y2 = y1 / 2.0;

	line((int)x2, 0, (int)x2, (int)y1);
	line(0, (int)y2, (int)x1, (int)y2);
}