Reputation: 668
Trying to print out floating point number from st0 register.
Currently I have to pass the value through xmm0 register then call c function printf.
is there any way to pass the value from the st0 register straight into printf?
Upvotes: 1
Views: 263
Reputation: 26171
the x86-64 ABI's require that you use XMM registers to pass around floating point values, so unless you write a custom printf
that uses your own ABI (calling convention), there is really no way around this.
Upvotes: 2