1.1 --- a/c++/rgb-assembler/commands/Color.h Sun Dec 24 00:47:34 2017 +0100
1.2 +++ b/c++/rgb-assembler/commands/Color.h Mon Dec 25 00:24:07 2017 +0100
1.3 @@ -27,15 +27,13 @@
1.4 class Color : public Command {
1.5 public:
1.6
1.7 - void process(octet_t* memory, address_t& index) override {
1.8 - led_t led = read<led_t>(memory, index);
1.9 - color_t r = read<color_t>(memory, index);
1.10 - color_t g = read<color_t>(memory, index);
1.11 - color_t b = read<color_t>(memory, index);
1.12 + void process(Memory &memory) override {
1.13 + led_t led = memory.read<led_t>();
1.14 + color_t r = memory.read<color_t>();
1.15 + color_t g = memory.read<color_t>();
1.16 + color_t b = memory.read<color_t>();
1.17 wprintf(L"COLOR %02X %02X %02X → %d\n", r, g, b, led);
1.18 }
1.19 -private:
1.20 -
1.21 };
1.22
1.23 }