created sicxe emulator project
This commit is contained in:
parent
cb38efe586
commit
3332b2971b
18 changed files with 1051 additions and 0 deletions
18
simulator_SIC_XE/include/output_device.h
Normal file
18
simulator_SIC_XE/include/output_device.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef OUTPUT_DEVICE_H
|
||||
#define OUTPUT_DEVICE_H
|
||||
|
||||
#include "device.h"
|
||||
#include <ostream>
|
||||
|
||||
class OutputDevice : public Device {
|
||||
public:
|
||||
explicit OutputDevice(std::ostream &out);
|
||||
~OutputDevice();
|
||||
|
||||
void write(unsigned char value) override;
|
||||
|
||||
private:
|
||||
std::ostream &outStream;
|
||||
};
|
||||
|
||||
#endif // OUTPUT_DEVICE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue