ack/mach/z80/int/cv.c

25 lines
447 B
C
Raw Normal View History

1987-03-10 11:49:39 +00:00
/* $Header$ */
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);
}
}