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