My Code;
section .data
    array DB 97,114,114,97,121 ; "a" "r" "r" "a" "y"
section .text
    global _start
_start:
    ;print "a"
    mov eax,4
    mov ebx,1
    mov ecx,[array]
    mov edx,1
    int 0x80
    ;print "r"
    mov eax,4
    mov ebx,1
    mov ecx,[array + 1]
    mov edx,1
    int 0x80
    ;print "r"
    mov eax,4
    mov ebx,1
    mov ecx,[array + 2]
    mov edx,1
    int 0x80
    ;print "a"
    mov eax,4
    mov ebx,1
    mov ecx,[array + 3]
    mov edx,1
    int 0x80
    ;print "y"
    mov eax,4
    mov ebx,1
    mov ecx,[array + 4]
    mov edx,1
    int 0x80
    ;exit
    mov eax,1
    int 0x80
this code is not working as i want. What i want is to print the elements inside an array. I'm not getting any error. Nothing print on the screen.
!!! I know there is a code like below.What I want is nothing like the below.
section .data
    array DB 97,114,114,97,121 ; "a" "r" "r" "a" "y"
section .text
    global _start
_start:
    mov eax,4
    mov ebx,1
    mov ecx,array
    mov edx,5
    int 0x80
    mov eax,1
    int 0x80
Thanks ... .
 
    