Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .data
- zahl1 dd 0
- zahl2 dd 0
- format1 db "%d", 0x0
- format db "%d", 0xa, 0x0
- section .text
- global main
- extern scanf
- extern printf
- main:
- push zahl1
- push format1
- call scanf
- push zahl2
- push format1
- call scanf
- mov ebx, [zahl1]
- mov ecx, [zahl2]
- ggt:
- mov edx, 0
- mov eax, ebx
- div ecx
- mov ebx, ecx
- mov ecx, edx
- cmp ecx, 0
- jnz ggt
- push ebx
- push format
- call printf
- mov eax, 1
- mov ebx, 0
- int 80h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement