3 ms·
The same engineer who came up with dest := source; and memcpy(dest, src, size); as well as obj.set(0); Numerous assembly languages have desti
by kazinator 10y ago
The same engineer who came up with
dest := source;
and
memcpy(dest, src, size);
as well as
obj.set(0);
Numerous assembly languages have destinations on the left.
Some have load/store instructions where the memory is always on one side:
load [r1], r3 ; --> direction
store [r1], r3 ; <-- direction
it's a matter of assembler syntax; the "AT&T" syntax used by the GNU assembler and gcc for x86 has destination on the right.