i've spent some time on ym2151 on saturn (sh2 big endian) using gcc 4.9.0
the result is :
volume_calc returns many times 0x3FF or more, quiet value is 0x340 => no sound
op_calc1 give me strange behavior :
p = (env<<3) + sin_tab[ (i>>FREQ_SH) & SIN_MASK];
(env<<3) = 19f8
(i>>FREQ_SH) & SIN_MASK = 03b2
sin_tab = FFF8C400
p = FFF8DDF8
TL_TAB_LEN = 1A00
p >= TL_TAB_LEN => no sound
anybody could help ? can it be an endian problem? i've seen nothing in gp32/xb360 port that could help