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

⟦e1b04dbb7⟧ TextFile

    Length: 270 (0x10e)
    Types: TextFile
    Notes: UNIX file
    Names: »dtext2.c«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦926b8033d⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »u/demo/slide/dtext2.c« 

TextFile

#include <stdio.h>
#define SEG1 ((unsigned int *)0x3b000000L)
main()
{
	int c;
	printf("\033[H\033[21B");
	while((c = getchar()) != EOF) putchar(c);
	printf("\033[H");
}
bwipe()
{
	register unsigned int *sp = SEG1;
	sp[0] = 0xffff;
	ldir(sp+1,sp,(800-512)*(1024/16));
}