ack/mach/z80/int/cv.c

25 lines
443 B
C
Raw Permalink Normal View History

1994-06-24 14:02:31 +00:00
/* $Id$ */
1984-06-25 16:22:03 +00:00
/*
1987-03-10 01:26:51 +00:00
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
1984-06-25 16:22:03 +00:00
*
*/
#include <stdio.h>
unsigned memaddr = 0x100;
main() {
char buf[256];
register i,len;
while((len=read(0,buf,sizeof(buf))) > 0) {
putw(memaddr,stdout);
putw(0,stdout);
putw(len,stdout);
memaddr += len;
for(i=0;i<len;i++)
putc(buf[i],stdout);
}
}