Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "cc3.c"
- .intel_syntax noprefix
- .globl _x
- .data
- _x:
- .byte 45
- .globl _y
- _y:
- .byte 50
- .comm _r_1, 2, 1
- .comm _r_2, 2, 1
- .comm _n, 4, 2
- .def ___main; .scl 2; .type 32; .endef
- .section .rdata,"dr"
- LC0:
- .ascii "(x + y)/2 + (y * x)/30 = %d\12\0"
- LC1:
- .ascii "%d\0"
- .text
- .globl _main
- .def _main; .scl 2; .type 32; .endef
- _main:
- LFB6:
- .cfi_startproc
- push ebp
- .cfi_def_cfa_offset 8
- .cfi_offset 5, -8
- mov ebp, esp
- .cfi_def_cfa_register 5
- push ebx
- and esp, -16
- sub esp, 16
- .cfi_offset 3, -12
- call ___main
- mov eax, 0
- mov ebx, 0
- mov al, (_x)
- mov bl, (_y)
- add ax, bx
- shr ax, 1
- mov (_r_1), ax
- mov eax, 0
- mov ebx, 0
- mov al, [_x]
- mov bl, [_y]
- mul bx
- mov bx, 30
- idiv bx
- mov bx, (_r_1)
- add ax, bx
- mov DWORD PTR [esp+4], eax
- mov DWORD PTR [esp], OFFSET FLAT:LC0
- call _printf
- mov DWORD PTR [esp+4], OFFSET FLAT:_n
- mov DWORD PTR [esp], OFFSET FLAT:LC1
- call _scanf
- mov ebx, DWORD PTR [ebp-4]
- leave
- .cfi_restore 5
- .cfi_def_cfa 4, 4
- .cfi_restore 3
- ret
- .cfi_endproc
- LFE6:
- .def _printf; .scl 2; .type 32; .endef
- .def _scanf; .scl 2; .type 32; .endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement