diff -r ae4a9092e1a8 -r cb2055cdc2f0 c++/rgb-assembler/rgb-assembler.cpp --- a/c++/rgb-assembler/rgb-assembler.cpp Sat Dec 23 23:34:21 2017 +0100 +++ b/c++/rgb-assembler/rgb-assembler.cpp Sat Dec 23 23:42:46 2017 +0100 @@ -4,13 +4,12 @@ #include #include #include -#include -#include #include "types.h" #include "memory.h" #include "Command.h" #include "commands/Goto.h" +#include "commands/Sleep.h" using namespace std; @@ -114,6 +113,7 @@ unordered_map> commands = { {CMD_GOTO, make_shared()}, + {CMD_SLEEP, make_shared()}, }; for (address_t i = 0; i < MEMORY_SIZE;) { @@ -131,13 +131,6 @@ } switch (command) { - case CMD_SLEEP: - { - sleep_t delay = read(memory, i); - wprintf(L"SLEEP %*d ms\n", 4, delay); - this_thread::sleep_for(chrono::milliseconds(delay)); - break; - } case CMD_COLOR: { led_t led = read(memory, i);