Loading values with RDFX
Posted: Thu Apr 02, 2020 5:50 pm
Hello! I'm having trouble understanding RDFX. According to the syntax and instructions page,we can use it to clear the acc and load a register by writing "RDFX reg,1"
The formula for RDFX is ACC=[reg]+(ACC-[reg])*K1 If K is equal to 1, we just get [reg]+(ACC-[reg]), and as far as I can tell reg would cancel out and we'd just be left with the ACC value we started with.
Most likely I'm just missing something about order of operations, but I'd really appreciate if anyone could spell this out for me a little clearer than the manual does.
Thanks!
The formula for RDFX is ACC=[reg]+(ACC-[reg])*K1 If K is equal to 1, we just get [reg]+(ACC-[reg]), and as far as I can tell reg would cancel out and we'd just be left with the ACC value we started with.
Most likely I'm just missing something about order of operations, but I'd really appreciate if anyone could spell this out for me a little clearer than the manual does.
Thanks!