Revision fc96cb0e70319855d9a675273ec7b61f910bf72b authored by Ron Burkey on 17 June 2020, 23:06:20 UTC, committed by Ron Burkey on 17 June 2020, 23:06:20 UTC
emulation of the PTC printer peripheral. Corrected some comment typos and other bugs I just happened to notice without detecting them as errors.
1 parent a38a94f
OUT.cpp
/****************************************************************************
* OUT - OUTPUT REGISTER subsystem
*
* AUTHOR: John Pultorak
* DATE: 9/22/01
* FILE: OUT.cpp
*
* NOTES: see header file.
*
*****************************************************************************
*/
#include "OUT.h"
#include "SEQ.h"
#include "BUS.h"
#include "DSP.h"
#include "ADR.h"
#include "PAR.h"
#include <stdlib.h>
regOut1 OUT::register_OUT1; // output register 1
regOut2 OUT::register_OUT2; // output register 2
regOut3 OUT::register_OUT3; // output register 3
regOut4 OUT::register_OUT4; // output register 4
// Writing to OUT0 loads the selected DSKY display register.
void
OUT::execWP_GENRST()
{
DSP::clearOut0();
register_OUT1.write(0);
register_OUT2.write(0);
}
void
OUT::execWP_WA10()
{
DSP::decodeRelayWord(BUS::glbl_WRITE_BUS);
}
void
OUT::execRP_RA11()
{
BUS::glbl_READ_BUS = register_OUT1.read();
}
void
OUT::execWP_WA11()
{
register_OUT1.write(BUS::glbl_WRITE_BUS);
}
void
OUT::execRP_RA12()
{
BUS::glbl_READ_BUS = register_OUT2.read();
}
void
OUT::execWP_WA12()
{
register_OUT2.write(BUS::glbl_WRITE_BUS);
}
void
OUT::execRP_RA13()
{
BUS::glbl_READ_BUS = register_OUT3.read();
}
void
OUT::execWP_WA13()
{
register_OUT3.write(BUS::glbl_WRITE_BUS);
}
void
OUT::execRP_RA14()
{
BUS::glbl_READ_BUS = register_OUT4.read();
}
void
OUT::execWP_WA14()
{
register_OUT4.write(BUS::glbl_WRITE_BUS);
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...