Pristine Ack-5.5
[Ack-5.5.git] / mach / z80 / int / cv.c
1 /* $Id: cv.c,v 1.4 1994/06/24 13:55:41 ceriel Exp $ */
2 /*
3  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4  * See the copyright notice in the ACK home directory, in the file "Copyright".
5  *
6  */
7
8 #include <stdio.h>
9
10 unsigned memaddr = 0x100;
11
12 main() {
13         char buf[256];
14         register i,len;
15
16         while((len=read(0,buf,sizeof(buf))) > 0) {
17                 putw(memaddr,stdout);
18                 putw(0,stdout);
19                 putw(len,stdout);
20                 memaddr += len;
21                 for(i=0;i<len;i++)
22                         putc(buf[i],stdout);
23         }
24 }