Now I'm working with floating point numbers IEEE 754 (single precision) and I wonder if I can somehow extract the parts of the floating point value to 64 bits registers (rax, rbx, rcx for example)
I'm using nasm so I've tried this code:
section .data
num dq -5.24324
num2 dq 1.53453
section .bss
ans1 resb 8
section .text
global _start
_start:
fld qword [num]
fxtract
fst ans1 ; extracting the exponent
mov rax, [ans1]
jmp _exit
But I got error here: main.asm:16: error: invalid combination of opcode and operands What do I do wrong?