Mercurial > hg > Members > kono > nitros9-code
view 3rdparty/packages/ccompiler/sources/line.c @ 3257:987f995993c3
co80: Use HW port address from descriptor (via SCF and VTIO)
Change the driver code to not use a hardcoded address.
Change the value in the descriptor to the previously
hardcoded value in the driver. Looks like someone was debugging
a WordPak prototype using the cartridge ROM enable output...
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Wed, 29 Aug 2018 08:49:13 +0200 |
parents | 734862561313 |
children |
line wrap: on
line source
/* line: list lines of file with numbers */ #include <stdio.h> main(argc,argv) char **argv; { char line[256]; register int count = 0; if(--argc) if(freopen(*++argv,"r",stdin) == NULL) { fprintf(stderr,"can't open file: %s\n",*argv); exit(errno); } while(gets(line)) printf("%5d %s\n",++count,line); }