File:  [Synchronet] / sbbs / steve / rtst.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:37:52 2018 UTC (8 years, 3 months ago) by root
Branches: digitaldynamics, MAIN
CVS tags: v1_06a, HEAD
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");
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.