Re: long double variables not printing properly after subroutine pass
Based on what I have seen before, I would suggest that you make your variable global and then pass it's address the your routine. My guess is that the compiler doesn't return long doubles properly. You can verify this by breaking at the return point in your current subroutine and then single-stepping through the disassembly listing to see (1) where the variable is put - (which registers), and (2) where the calling program looks for the return value. I'll bet there's a 'disconnect' between the two.