c++/rgb-assembler/commands/Sleep.h
changeset 31 b997cbf9e30b
parent 29 10d6964e7b4a
     1.1 --- a/c++/rgb-assembler/commands/Sleep.h	Sun Dec 24 00:47:34 2017 +0100
     1.2 +++ b/c++/rgb-assembler/commands/Sleep.h	Mon Dec 25 00:24:07 2017 +0100
     1.3 @@ -31,13 +31,11 @@
     1.4  class Sleep : public Command {
     1.5  public:
     1.6  
     1.7 -	void process(octet_t* memory, address_t& index) override {
     1.8 -		sleep_t delay = read<sleep_t>(memory, index);
     1.9 +	void process(Memory &memory) override {
    1.10 +		sleep_t delay = memory.read<sleep_t>();
    1.11  		wprintf(L"SLEEP %*d ms\n", 4, delay);
    1.12  		this_thread::sleep_for(chrono::milliseconds(delay));
    1.13  	}
    1.14 -private:
    1.15 -
    1.16  };
    1.17  
    1.18  }