Archived
1
0
Fork 0
This repository has been archived on 2022-06-20. You can view files and clone it, but cannot push or open issues or pull requests.
mipt_clang/nasm/M.asm
2022-04-08 12:15:53 +03:00

30 lines
301 B
NASM

global main
extern scanf
extern printf
section .text
main:
push x
push scan
call scanf
add esp, 8
fld tword [x]
fabs
sub esp, 12
fstp tword [esp]
push nya
call printf
add esp, 16
xor eax, eax
ret
section .data
scan db "%llf", 0
nya db "%llf", 10, 0
section .bss align=16
x rest 1