Code:
.data
testtext:
.asciz "XXXXXX"
.bss
.text
.globl _start
.start:
movl $4, %eax
movl $1, %ebx
movl $testtext, %ecx
movl $7, %esi
int $0x80
movl $1, %eax
movl $37, %ebx
int $0x80
Hi guys and girls, hope you are all well and in the firday feeling

I was wondering if a better person than me could help

In the abouve program its ment to be a hello world thing for my assembler course, its stumped me and my lecturer why print isnt working and any help as to why it isnt printing to the screen will be hugley helped
Its being compiled on a 64 bit machine debian 6
Linux innes 2.6.32-5-amd64 #1 SMP Sun Sep 23 10:07:46 UTC 2012 x86_64 GNU/Linux
# ~ /source/ctec3751/lab2$ as prog3.s -o prog3.o --32 -ggdb; ld prog3.o -o prog3.exe -m elf_i386;
#~/source/ctec3751/lab2$ ./prog3.exe
Looking in gdb i can see the regiers being set, but it just skips over the write as if it has not been called

~~~~~~~~~~~~~
EDIT :-
We were told to use esi when in fact we should have been using EDX
~~~~~~~~#
Thank you for taking the time to read this

Edited by Ulquiorra - 10/19/12 at 5:45am





