c++/rgb-assembler/commands/Goto.h
author František Kučera <franta-hg@frantovo.cz>
Sat, 23 Dec 2017 23:24:51 +0100
changeset 20 b9ceffdcaf14
child 29 10d6964e7b4a
permissions -rw-r--r--
move memory functions to a header file + introduce Command classes
     1 #pragma once
     2 
     3 #include <wchar.h>
     4 
     5 #include "../Command.h"
     6 
     7 namespace commands {
     8 
     9 class Goto : public Command {
    10 public:
    11 
    12 	void process(octet_t* memory, address_t& index) override {
    13 		index = read<address_t>(memory, index);
    14 		wprintf(L"GOTO %*d\n", 5, index);
    15 	}
    16 private:
    17 
    18 };
    19 
    20 }