segmentation fault problems -_- (Linux, AT&T syntax)

here is the source:
[code]
.lor:
.string "Hello, World!
"

.text
.align 4
.globl main
main:
pushl %ebp
movl %esp, %ebp
movl $10, %ebx
LOOP:
cmpl $0, %ebx
jne NE
jmp GO
NE:
;subl $4, %esp
pushl $.lor
call printf
popl %eax
decl %ebx
jmp LOOP
GO:
movl $0, %eax
leave
ret
[/code]
I continually get a segmentation fault but I can't understand why, and I'm fairly new to ASM, I'm just playing off of reverse engineering here.

Comments

  • Is there a reason you have to stick to AT&T assemblers?
    I mean, if your just starting in assembly, there are great assemblers
    available on the internet for free. TASM MASM NASM to mention a few.
    Assemblers with the AT&T basicly aren't in the main stream.
    Getting source code, help, upgrades, asm buddies, etc may prove hard to come by in the AT&T world................
    Of course with a www.google.com search you might find an AT&T head quarters some where.........
    But if your message goes unanswered here, it may be because it's just not used in this neck of the woods. (From my observances over the last 6 months or so.)

    I wish I had good news or real help for you.
    But since no one answered your post, I figgured I would.
    Asmguru62 who hangs out here, is a good source for Tasm help 'n info.
    I have a beginners Nasm environment .zip availble.
    Masm is popular around here amongst the locals.

    Bitdog

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion