I am learning assembly on linux. I have a list of data items of type long -
.long 3,2,7,99,27,85
What will be the ending address of this list?
I have this piece of code to find minimum number from a list

.long 3,67,34,222,56,87,9,2,88,22,11,66
.section .text
.globl _start
movl $0,%edi
movl data_items(,%edi,4),%eax
movl %eax,%ebx

incl %edi
cmpl $12,%edi
je loop_exit
movl data_items(,%edi,4),%eax
cmpl %ebx,%eax
jg start_loop
movl %eax,%ebx
jmp start_loop
        movl $1,%eax
        int $0x80

Now , I need to "Modify the maximum program to use an ending address  when to stop." Rite now, it uses length of the data_items
Posted on 2009-06-25 21:43:11 by vishal
You need to add an ending label yourself...

If you don't know how to do that, pay more attention in class - your question smells suspiciously much like a homework assignment :)
Posted on 2009-06-26 11:52:07 by f0dder