View Single Post
Old Jan 11, 2008, 09:17 AM   #1 (permalink)
stylus02
DriverHeaven Lover
 
Join Date: Jan 2008
Location: germany, sb0090
Posts: 101
stylus02 is on a distinguished road

log_dane, exp_dane in c++

hi all,

to save some registers and instructions, i'm interested in c++ implementation of the microcode.
how do the c++ functions "log_dane", "exp_dane" have to be used correctly?
i have done following:

...
case VOL3_ID:
// lin > log calculation from vfader value
set_dsp_register(VOL3_P, (dword)log_DANE(value, 2));
break;
...
create_vfader(level_3, VOL3_ID, "s", 0 , 0x7fffffff, 85, 10, 50, 100);
...
sprintf(c, "% .1f", v/10.);
// shows float 0..1
...

when i dump the compilied kxl in dane only 0x0 and 0x1 are written in dsp register "vol3". where i am wrong?

thank you

kx it!
stylus02 is offline   Reply With Quote