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