|
|
1.1 root 1: #include <stdio.h>
2:
3: extern unsigned int plst;
4: int rioini(int,int);
5: int setbaud(int);
6: int incom(void);
7: int outcom(int);
8: void bblst(void);
9:
10: main() {
11: unsigned int j,c;
12: unsigned char *pc;
13: rioini(2,0);
14: printf("b"); bblst();
15: printf("%d\n",setbaud(300));
16: /* system("ios"); */
17: outcs("ats21?\x0d");
18: printf("a"); bblst();
19: while (!bioskey(1)); c=getch();
20: printf("b"); bblst();
21: outcs("ath1\x0d");
22: printf("a"); bblst();
23: while (!bioskey(1)); c=getch();
24: printf("+"); bblst();
25: while (1) {
26: c=0;
27: if (bioskey(1)) c=getch();
28: if (c==0x7a) break;
29: if ((c=incom())!=0x100) printf("%02X ",c); }
30: printf("\n-"); bblst();
31: printf("\ndone\n");
32: pc=&plst; pc+=24; printf("rxb ");
33: for (j=0; j<24; j++) printf("%02X ",0xff&*(pc+j));
34: printf("\ntxb ");
35: pc+=256;
36: for (j=0; j<24; j++) printf("%02X ",0xff&*(pc+j));
37: printf("\n");
38: outcs("ath\x0d");
39: /* system("ios");*/
40: rioini(0,0);
41: }
42: int outcs(char *str) {
43: int i=0;
44: while(str[i]!=0) outcom(str[i++]);
45: }
46: void bblst(void) {
47: unsigned int *pv;
48: int i;
49: pv=&plst;
50: printf("%Fp",pv);
51: for (i=0; i<12; i++) printf(".%04X",*(pv+i));
52: printf("\n");
53: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.