ich versuche mich gerade an dem Zugriff auf eine Array und komme einfach nicht dahinter warum ich hier ein Segmentation fault bekomme. Im Grunde ist das ja das Gleiche wie auf der Seite 15 vom Satz 5.
Hier das Beispiel:
Code: Alles auswählen
.data
intout: .string "Ergebnis %d \n"
dat: .long 1, 2, 3, 4, 5, 6, 7
.text
.globl main
movl $0, %edi
main:
movl dat(,%edi,4), %eax
pushl %eax
pushl $intout
call printf
movl $1, %eax
int $0x80
Kann mir das jemand bitte erklären..
Vielen Dank im Voraus