Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SYS_EXIT = 1
- EXIT_SUCCES = 0
- .data
- liczba1: .long 0x01234567, 0x89ABCDEF, 0x76543210, 0xFEDCBA98
- liczba2: .long 0x4000FFFF, 0xFFF20026, 0x321000CB, 0xF4520031
- .text
- .global _start
- _start:
- movl $4, %ecx
- clc
- petla:
- cmp $0, %ecx
- je zakoncz
- movl %ecx, %edx
- decl %edx
- movl liczba1(, %edx, 4), %eax
- movl liczba2(, %edx, 4), %ebx
- adcl %ebx, %eax
- pushl %eax
- jc przeniesienie
- pushl $0
- dalej:
- decl %ecx
- jmp petla
- przeniesienie:
- movl $0, %eax
- adcl $0, %eax
- pushl %eax
- jmp dalej
- zakoncz:
- movl $SYS_EXIT, %eax
- movl $EXIT_SUCCES, %ebx
- int $0x80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement