author | František Kučera <franta-hg@frantovo.cz> |
Sat, 23 Dec 2017 23:45:27 +0100 | |
changeset 23 | e85d2bfaff73 |
parent 22 | c++/rgb-assembler/commands/Sleep.h@cb2055cdc2f0 |
child 29 | 10d6964e7b4a |
permissions | -rw-r--r-- |
franta-hg@20 | 1 |
#pragma once |
franta-hg@20 | 2 |
|
franta-hg@20 | 3 |
#include <wchar.h> |
franta-hg@22 | 4 |
#include <chrono> |
franta-hg@22 | 5 |
#include <thread> |
franta-hg@20 | 6 |
|
franta-hg@20 | 7 |
#include "../Command.h" |
franta-hg@23 | 8 |
#include "../memory.h" |
franta-hg@20 | 9 |
|
franta-hg@22 | 10 |
using namespace std; |
franta-hg@22 | 11 |
|
franta-hg@20 | 12 |
namespace commands { |
franta-hg@20 | 13 |
|
franta-hg@23 | 14 |
class End : public Command { |
franta-hg@20 | 15 |
public: |
franta-hg@20 | 16 |
|
franta-hg@20 | 17 |
void process(octet_t* memory, address_t& index) override { |
franta-hg@23 | 18 |
wprintf(L"END\n"); |
franta-hg@23 | 19 |
index = MEMORY_SIZE; |
franta-hg@20 | 20 |
} |
franta-hg@20 | 21 |
private: |
franta-hg@20 | 22 |
|
franta-hg@20 | 23 |
}; |
franta-hg@20 | 24 |
|
franta-hg@20 | 25 |
} |