by sebraa » Fri Feb 24, 2017 5:18 pm
All assembly instructions follow the scheme of "instruction destination, source". So it is "MOVTS config, r16" (because it copies from r16 to config) and "MOVFS r16, config" (because it copies from config to r16).
The switchable instruction set is one of the more annoying ISA decisions in the Epiphany, because it interacts badly with interrupts. If you require ISRs to never change (or always restore) the whole config register, you could skip the gid/gie dance in normal code.