According to the cheat sheet:
According to the ASM manual regarding k1/c:RDAX reg,K1 ACC=ACC+[reg]*K1 K1=16b, -2.0 to +0.9999389
Manual regarding S1.14:C 16bit Real (S1.14) Hex ($8000 - $0000 $7FFF) Symbolic
The reason I'm asking is I have a case where I need to precisely add two values (for a counter). Normally i would do:S1.14 Bits 16 Range 2 to 1.99993896484 Resolution (LSB value) 0.00006103516
Code: Select all
clr ; acc = 0
or VALUE1 ; acc = value1
rdax reg0, 1 ; value2 contained in reg0, acc = value1 + (value2*1)
wrax reg0, 0 ; store new sum in reg0 for next cycle