dos33fsprogs/dos33_text2ascii.c
Vince Weaver 04ac80431e Add dos33_text2ascii.c
Was working on this to aid development of TB_6502 assembly language game
2012-05-02 10:40:29 -04:00

21 lines
257 B
C

#include <stdio.h>
int main(int argc, char **argv) {
int ch;
while(1) {
ch=fgetc(stdin);
if (feof(stdin)) return 0;
ch=ch&0x7f;
if (ch=='\r') ch=('\n');
fputc(ch,stdout);
}
return 0;
}