c++/rgb-assembler/Command.h
changeset 20 b9ceffdcaf14
child 29 10d6964e7b4a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/c++/rgb-assembler/Command.h	Sat Dec 23 23:24:51 2017 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +#pragma once
     1.5 +
     1.6 +#include "types.h"
     1.7 +#include "memory.h"
     1.8 +
     1.9 +class Command {
    1.10 +public:
    1.11 +	/**
    1.12 +	 * Process command at given address, read parameters if any. And shift address to new one (after last parameter)
    1.13 +	 * @param memory
    1.14 +	 * @param index address of the command in the memory
    1.15 +	 */
    1.16 +	virtual void process(octet_t * memory, address_t &index) = 0;
    1.17 +private:
    1.18 +
    1.19 +};