section .data string db "Hello World", 0 section .bss string2 resb 12 section .text global _main _main: mov ecx, 0 looping: mov al, [string + ecx] mov [string2 + ecx], al inc ecx cmp al, 0 ;copy until we find the terminating 0 je end jmp looping end: xor eax, eax ret