;absoval.asm
section .data
FALSE equ 0
TRUE equ 1
EXIT_SUCCESS equ 0
SYS_exit equ 60
zerozero dq 0.00
menouno dq -1.00
section .text
global absv
absv:
push rbx
mov ebx, 0
movsd xmm0, qword[rdi*8]       ;get &absova in absva.c
movsd qword[ebx], xmm0
ucomisd xmm0, qword[zerozero]
jb absov
mulsd xmm0, qword[menouno]
movsd qword[ebx], xmm0
movsd qword[rdx], xmm0
absov:
pop rbx
ret
ESCI:
mov rax, SYS_exit
mov rbx, EXIT_SUCCESS
syscall

