# HG changeset patch # User František Kučera # Date 1513873375 -3600 # Node ID e0a48e475a77ef69acdf5e3a4bb3e30aa22f8a6f # Parent b589459129a9c6df592373a4af8e618e9390a1c0 commands in hexadecimal diff -r b589459129a9 -r e0a48e475a77 c++/rgb-assembler/rgb-assembler.cpp --- a/c++/rgb-assembler/rgb-assembler.cpp Thu Dec 21 17:18:22 2017 +0100 +++ b/c++/rgb-assembler/rgb-assembler.cpp Thu Dec 21 17:22:55 2017 +0100 @@ -11,9 +11,9 @@ const address_t MEMORY_SIZE = 1024; -const command_t CMD_GOTO = 100; -const command_t CMD_SLEEP = 101; -const command_t CMD_END = 102; +const command_t CMD_GOTO = 0x70; +const command_t CMD_SLEEP = 0xFF; +const command_t CMD_END = 0xED; /** * Reads the command on given position in memory and increments the index (position). @@ -73,7 +73,7 @@ for (address_t i = 0; i < MEMORY_SIZE;) { wprintf(L"command %d = ", i); command_t ch = readCommand(memory, i); - wprintf(L"%d\n", ch); + wprintf(L"%X\n", ch); string command;