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

10
ass2/OutputDevice.cpp Normal file
View file

@ -0,0 +1,10 @@
#include "OutputDevice.h"
OutputDevice::OutputDevice(std::ostream& out) : output(out) {
}
void OutputDevice::write(uint8_t value) {
char c = (char)value;
output.put(c);
output.flush();
}