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 8:55

>>3
Isn't it obvious? You can't use the accumulator as a base address

I heard this the first time, i havnt seen any such note on sandpile.org nor siyobik.info.

Nor did as complain and i recieved no errors at runtime, that seems weird to me. Would anybody shed some light on this?

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