From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 16 18:19:03 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0F912D4C for ; Wed, 16 Apr 2014 18:19:03 +0000 (UTC) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 985401041 for ; Wed, 16 Apr 2014 18:19:02 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id d1so1818432wiv.15 for ; Wed, 16 Apr 2014 11:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=CNOZIAxR3Y3U7rkrKMaNoZUvMWx8/3rn5uHJFaBGsP8=; b=ray6Urqwc8bRrN2CLU9z960W4P0Y8aKlA37QQhes14oD37TUrdhGTPkM2hfXbb4bPT SahADfv3lqs8nba41WVwdePkZn8DfhhhlaVY4Csgo4t+ZCiDe/6sX4NV8euTw8CQKF/o 3WtP7ojSll2HLAuJsiKVPT5nlfxl6vfsi+AlndzxQn1L8HSdDQgU6fqyscYwVShBxfIE PpFB9rfzOH1SnQGmVRs5IMt7wlzmYQCmge9TlFNxlr8LFjAT7BbwlUGOkfeFm/oh9xdi bZajN2IOtjSs1rEMFiBtoAwXVIFmqTX+hBmTSDX5PDJS5Ja9QCM2yftQ4RlLqnvpsDCz a7Gg== X-Received: by 10.194.103.36 with SMTP id ft4mr3092105wjb.66.1397672340946; Wed, 16 Apr 2014 11:19:00 -0700 (PDT) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPSA id fi2sm37321664wic.15.2014.04.16.11.18.59 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 16 Apr 2014 11:18:59 -0700 (PDT) Date: Wed, 16 Apr 2014 20:18:57 +0200 From: Mateusz Guzik To: velocidade da luz Subject: Re: Corrected in FreeBSD Developers Handbook Message-ID: <20140416181856.GA13921@dft-labs.eu> Mail-Followup-To: Mateusz Guzik , velocidade da luz , "freebsd-hackers@freebsd.org" References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2014 18:19:03 -0000 On Wed, Apr 16, 2014 at 06:49:35PM +0300, velocidade da luz wrote: > You agree that should be corrected in FreeBSD Developers Handbook the what is being discussed in FreeBSD Forums. http://forums.freebsd.org/viewtopic.php?f=34&t=45995 > I am interested in learning the true Assembly. > I don't think the purpose of that chapter was to teach any form of assembly in the first place and don't think this handbook should try to do that. Instead it seems to show how to do stuff on FreeBSD if you have assembly knowledge already which I find reasonable. This is of course assuming either ia-32 or amd64. If you want to learn practical assembly I suggest you steal syscall calling code from that tutorial, read what stack is and start playing with the code. If stuck, write an equivalent in C let your compiler translate it to assembly (-S switch to gcc and clang). -- Mateusz Guzik