From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hendrix.mega-nerd.net (hendrix.mega-nerd.net [203.206.230.162]) by ozlabs.org (Postfix) with ESMTP id 21BA32C02A6 for ; Mon, 10 Jun 2013 09:10:15 +1000 (EST) Received: from rollins.mnn (pharoah-vpn [10.9.8.2]) by hendrix.mega-nerd.net (Postfix) with SMTP id 8C29F106FC3 for ; Mon, 10 Jun 2013 09:01:35 +1000 (EST) Date: Mon, 10 Jun 2013 09:01:35 +1000 From: Erik de Castro Lopo To: linuxppc-dev@lists.ozlabs.org Subject: PowerPC assembler question Message-Id: <20130610090135.a002eba2401c06eedfa7b7ec@mega-nerd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi all, I'm trying to fix a problem in the PowerPC backend of the Glasgow Haskell Compiler (GHC) and have a problem with the following instruction form: lwz 30, .label - (1b)(31) Reading the documentation I could find, I have figured out that this loads a 16 bit value into register 30. How it calculates that 16 bit value has got me somewhat flumoxed. Anybody care to explain? Cheers, Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/