assembly code?

Nic Reveles nreveles4 at hotmail.com
Mon May 29 17:17:16 PDT 2006


Does anyone know where I might find non-convoluted assembly code for amd64 
architecture?  Everything I can find is to x86 32 bits... Do we still use 
"int 80h" to call the kernel?

I am hoping to find out which registers need to be set to what for which 
functions, etc.  Preferably 'yasm' style or something similiar...

Someone suggested writing code in C and looking at the assembly with gcc -S 
mycode.c, but it is a real mess.  After a lot of work I was able to figure 
out how to exit the program:

; exit program
mov eax, [RETURN VALUE]
ret

If anyone has any good online resources, I would be more than grateful.  A 
"hello world" example would be great!

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



More information about the freebsd-amd64 mailing list