created basic simulator

This commit is contained in:
privsk 2025-11-27 08:17:43 +01:00
parent 8c02a9e950
commit 5a06b2bc0b
12 changed files with 541 additions and 0 deletions

19
ass2/OutputDevice.h Normal file
View file

@ -0,0 +1,19 @@
#ifndef OUTPUTDEVICE_H
#define OUTPUTDEVICE_H
#include <ostream>
#include "Device.h"
class OutputDevice : public Device {
private:
std::ostream& output;
public:
OutputDevice(std::ostream& out);
// override write method to write to output stream
void write(uint8_t value) override;
};
#endif // OUTPUTDEVICE_H