Re: Still stuck with this assembly stuff (amd64)

2005-07-21 Thread Artur Grabowski
Brian [EMAIL PROTECTED] writes: I spent the last three days reading through all the archives. And I have no clue what I am doing wrong. I only started down this road because of some of the other posters. I figured I would give assembly a shot. Why? Do you like pain? I read Assembly Step

Re: Still stuck with this assembly stuff (amd64)

2005-07-21 Thread Brett Lymn
On Thu, Jul 21, 2005 at 11:17:31AM +0200, Artur Grabowski wrote: Never mind that the way that code does syscalls is unsupported even on i386. Never mind that the calling conventions on amd64 are different. Never mind that you're using 32-bit pointers on a 64-bit architecture. Never mind that

Re: Still stuck with this assembly stuff (amd64)

2005-07-21 Thread Brian
Thanks. I just wasn't sure if my problem was an openBSD problem or an assembly problem. It's definitely the later. And I just found the amd64 ABI, which is making the problems clear for me. Pushing those args on the stack is definitely wrong. Anyway, I appreciate the feedback. And thanks Art

Still stuck with this assembly stuff (amd64)

2005-07-20 Thread Brian
I spent the last three days reading through all the archives. And I have no clue what I am doing wrong. I only started down this road because of some of the other posters. I figured I would give assembly a shot. I read Assembly Step by Step, which is really geared toward DOS and linux, but it's