|
|
1.06a MS-DOS
#include <stdio.h>
extern unsigned int plst;
int rioini(int,int);
int setbaud(int);
int incom(void);
int outcom(int);
void bblst(void);
main() {
unsigned int j,c;
unsigned char *pc;
rioini(2,0);
printf("b"); bblst();
printf("%d\n",setbaud(300));
/* system("ios"); */
outcs("ats21?\x0d");
printf("a"); bblst();
while (!bioskey(1)); c=getch();
printf("b"); bblst();
outcs("ath1\x0d");
printf("a"); bblst();
while (!bioskey(1)); c=getch();
printf("+"); bblst();
while (1) {
c=0;
if (bioskey(1)) c=getch();
if (c==0x7a) break;
if ((c=incom())!=0x100) printf("%02X ",c); }
printf("\n-"); bblst();
printf("\ndone\n");
pc=&plst; pc+=24; printf("rxb ");
for (j=0; j<24; j++) printf("%02X ",0xff&*(pc+j));
printf("\ntxb ");
pc+=256;
for (j=0; j<24; j++) printf("%02X ",0xff&*(pc+j));
printf("\n");
outcs("ath\x0d");
/* system("ios");*/
rioini(0,0);
}
int outcs(char *str) {
int i=0;
while(str[i]!=0) outcom(str[i++]);
}
void bblst(void) {
unsigned int *pv;
int i;
pv=&plst;
printf("%Fp",pv);
for (i=0; i<12; i++) printf(".%04X",*(pv+i));
printf("\n");
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.