From owner-freebsd-amd64@FreeBSD.ORG Tue May 30 00:17:11 2006 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC0C116B1A6 for ; Tue, 30 May 2006 00:17:11 +0000 (UTC) (envelope-from nreveles4@hotmail.com) Received: from hotmail.com (bay105-f8.bay105.hotmail.com [65.54.224.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EBF943D80 for ; Tue, 30 May 2006 00:17:04 +0000 (GMT) (envelope-from nreveles4@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 29 May 2006 17:17:04 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Tue, 30 May 2006 00:17:02 GMT X-Originating-IP: [70.32.233.217] X-Originating-Email: [nreveles4@hotmail.com] X-Sender: nreveles4@hotmail.com From: "Nic Reveles" To: freebsd-amd64@freebsd.org Date: Mon, 29 May 2006 19:17:02 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 30 May 2006 00:17:04.0899 (UTC) FILETIME=[61592D30:01C6837E] Subject: assembly code? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 May 2006 00:17:16 -0000 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/