c++/rgb-assembler/Command.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 "types.h"
     4 #include "memory.h"
     5 
     6 class Command {
     7 public:
     8 	/**
     9 	 * Process command at given address, read parameters if any. And shift address to new one (after last parameter)
    10 	 * @param memory
    11 	 * @param index address of the command in the memory
    12 	 */
    13 	virtual void process(octet_t * memory, address_t &index) = 0;
    14 private:
    15 
    16 };