Category : Network Files
Archive   : KA9Q.ZIP
Filename : 8530.C

 
Output of file : 8530.C contained in archive : KA9Q.ZIP
/* Routines generic to all interfaces with 8530s */
#include "global.h"
#include "8530.h"

/* Write 8530 register */
void
write_scc(ctl,reg,val)
register int16 ctl;
int16 reg,val;
{
char i_state;

i_state = disable();
/* Select register; note that point high is also written */
if(reg != R0)
outportb(ctl,(char)(NULLCODE|reg));
outportb(ctl,(char)val);
restore(i_state);
}
/* Read 8530 register */
char
read_scc(ctl,reg)
register int16 ctl;
char reg;
{
char c,i_state;

i_state = disable();
/* Select register; note that point high is also written */
if(reg != R0)
outportb(ctl,(char)NULLCODE|reg);
c = inportb(ctl);
restore(i_state);
return c;
}



  3 Responses to “Category : Network Files
Archive   : KA9Q.ZIP
Filename : 8530.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/