# aaa
.section .data
value1:
.byte 0x05, 0x02, 0x01, 0x08, 0x02
value2:
.byte 0x03, 0x03, 0x09, 0x02, 0x05
.section .bss
.lcomm sum, 6
.section .text
nop
xor %edi, %edi
movl $5, %ecx
clc # to clear the carry flag
loop1:
movb value1(, %edi, 1), %al
adcb value2(, %edi, 1), %al
aaa
movb %al, sum(, %edi, 1)
inc %edi
loop loop1
adcb $0, sum(, %edi, 4)
movl $1, %eax
movl $0, %ebx
int $0x21
