1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/c++/rgb-assembler/commands/Goto.h Sat Dec 23 23:24:51 2017 +0100
1.3 @@ -0,0 +1,20 @@
1.4 +#pragma once
1.5 +
1.6 +#include <wchar.h>
1.7 +
1.8 +#include "../Command.h"
1.9 +
1.10 +namespace commands {
1.11 +
1.12 +class Goto : public Command {
1.13 +public:
1.14 +
1.15 + void process(octet_t* memory, address_t& index) override {
1.16 + index = read<address_t>(memory, index);
1.17 + wprintf(L"GOTO %*d\n", 5, index);
1.18 + }
1.19 +private:
1.20 +
1.21 +};
1.22 +
1.23 +}