Finished implentation of devices and added Opcode class
This commit is contained in:
parent
9cc0c10e35
commit
3f39c6cb71
78 changed files with 262 additions and 90 deletions
|
|
@ -13,14 +13,14 @@ public:
|
|||
};
|
||||
|
||||
class InputDevice : public Device {
|
||||
istream& input;
|
||||
istream* input;
|
||||
public:
|
||||
InputDevice(istream& in);
|
||||
unsigned char read() override;
|
||||
};
|
||||
|
||||
class OutputDevice : public Device {
|
||||
ostream& output;
|
||||
ostream* output;
|
||||
public:
|
||||
OutputDevice(ostream& out);
|
||||
void write(unsigned char value) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue