Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What the shit! ASM!

Name: Anonymous 2010-08-21 7:23

Hi /prog/

I have writen a program in ASM and for some odd reason this:
call dicks
movl %ecx, 1(%edx, %eax, 4)
does not work, but this code:
call dicks
movl %eax, %ebx
movl %ecx, 1(%edx, %ebx, 4)
does.

And no, there is no code that alters eax inbetween, its just 0, i examined that and it was not 0 before.
edx is correct too, i checked it.

I also get a FP exception when making a division and ecx is not 0.

I am currently reading 286 and 386 programmer manuals by the way.

What the fuck is going on here? Am i missing something?

Name: Anonymous 2010-08-21 11:22

>>8,6
Sorry about the AT&T syntax, i dont understand why its supposed to be ugly, a matter of preference i guess. I just used it becaus GAS uses it and im used to it.
I wanted to convert to intel syntax anyways.
>>8
I didnt try that yet. I just commented out div ecx and then it worked. I get a floating point exception from GDB and bash, with the division.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List