ack/mach/z80/int/cv.c
1994-06-24 14:02:31 +00:00

25 lines
443 B
C

/* $Id$ */
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*
*/
#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);
}
}