1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/c++/rgb-assembler/commands/End.h Sat Dec 23 23:45:27 2017 +0100
1.3 @@ -0,0 +1,25 @@
1.4 +#pragma once
1.5 +
1.6 +#include <wchar.h>
1.7 +#include <chrono>
1.8 +#include <thread>
1.9 +
1.10 +#include "../Command.h"
1.11 +#include "../memory.h"
1.12 +
1.13 +using namespace std;
1.14 +
1.15 +namespace commands {
1.16 +
1.17 +class End : public Command {
1.18 +public:
1.19 +
1.20 + void process(octet_t* memory, address_t& index) override {
1.21 + wprintf(L"END\n");
1.22 + index = MEMORY_SIZE;
1.23 + }
1.24 +private:
1.25 +
1.26 +};
1.27 +
1.28 +}