From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] assembler question From: Charles Forsyth Date: Sat, 30 Oct 2004 10:24:18 +0100 In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-mixwedwbidrsxxcsosqqcqlifg" Topicbox-Message-UUID: f8b905b8-eacd-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-mixwedwbidrsxxcsosqqcqlifg Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit be careful that all the plan 9 assemblers always use source -> dest data flow order for instructions, which can differ from the (sometimes inconsistent) order used by others. (i quite like this because once you know the rule, you won't get screwed up writing code for several architectures in the same hour, as i do, but it needs some attention if you're working from another code sample where the conventions are different.) --upas-mixwedwbidrsxxcsosqqcqlifg Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by lavoro; Sat Oct 30 04:05:30 BST 2004 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 2077063AF9 for ; Fri, 29 Oct 2004 23:04:34 -0400 (EDT) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 40C8863A15 for <9fans@cse.psu.edu>; Fri, 29 Oct 2004 23:04:13 -0400 (EDT) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09036-02-17 for <9fans@cse.psu.edu>; Fri, 29 Oct 2004 23:04:12 -0400 (EDT) Received: from gau.lava.net (gau.lava.net [64.65.64.28]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id DD70E63A09 for <9fans@cse.psu.edu>; Fri, 29 Oct 2004 23:04:11 -0400 (EDT) Received: from malasada.lava.net (malasada.lava.net [64.65.64.17]) by gau.lava.net (Postfix) with ESMTP id 4A4061710F; Fri, 29 Oct 2004 17:04:11 -1000 (HST) Date: Fri, 29 Oct 2004 17:04:11 -1000 (HST) From: Tim Newsham To: Russ Cox , Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] assembler question In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at cse.psu.edu Cc: X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+forsyth=terzarima.net@cse.psu.edu Errors-To: 9fans-bounces+forsyth=terzarima.net@cse.psu.edu > Looking at /sys/src/cmd/ka/a.y:208, it appears you > can just say ADDW r2, r3, r4. Have you tried this? Ahh.. I was trying "ADD R1, $1, R2" but "ADD $1, R1, R2" seems to have worked. Sorry to raise a false warning. > Russ Tim N. --upas-mixwedwbidrsxxcsosqqcqlifg--