|
DataMuseum.dkPresents historical artifacts from the history of: Commodore CBM-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Commodore CBM-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 313 (0x139) Types: TextFile Notes: UNIX file Names: »dtext.c«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code └─⟦926b8033d⟧ UNIX Filesystem └─⟦this⟧ »u/demo/slide/dtext.c«
#include <stdio.h> #define SEG1 ((unsigned int *)0x3b000000L) main() { int c; bwipe(); /* Clear out bottom of screen */ 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)); }