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/K.asm
2022-04-05 15:43:58 +03:00

33 lines
321 B
NASM

global main
extern scanf
extern printf
section .text
main:
push y
push x
push scan
call scanf
add esp, 12
fld dword [x]
fld dword [y]
fdiv
sub esp, 8
fst qword [esp]
push nya
call printf
add esp, 12
xor eax, eax
ret
section .data
scan db "%f%f", 0
nya db "%f", 10, 0
section .bss
x resd 1
y resd 1