.data chunk1: .word 2542, 0x2daf, 234, 0766, 0, 0, 0 .text .global _start _start: movl $chunk1, %eax movw (%eax), %bx movw 4(%eax), %bx movl $1,%ecx movw chunk1(,%ecx), %bx movw chunk1(,%ecx,2), %bx movw 3(%eax,%ecx,2), %bx # %ecx * 2 = 2 # %eax + %ecx * 2 = chunk1 + 2 # 3 + %eax + %ecx * 2 = chunk1 + 2 + 3 # = chunk1 + 5 # MSB of 234 becomes LSB of %bx, # and LSB of 0766 becomes MSB of %bx movl $1,%eax movl $0,%ebx int $0x80