c++/rgb-assembler/commands/Goto.h
changeset 33 ff150572e8c0
parent 31 b997cbf9e30b
     1.1 --- a/c++/rgb-assembler/commands/Goto.h	Mon Dec 25 00:34:27 2017 +0100
     1.2 +++ b/c++/rgb-assembler/commands/Goto.h	Mon Dec 25 01:27:44 2017 +0100
     1.3 @@ -29,7 +29,7 @@
     1.4  
     1.5  	void process(Memory &memory) override {
     1.6  		address_t index = memory.read<address_t>();
     1.7 -		memory.setIndex(index);
     1.8 +		memory.setAddress(index);
     1.9  		wprintf(L"GOTO %*d\n", 5, index);
    1.10  	}
    1.11  };