From owner-freebsd-questions@FreeBSD.ORG Mon Jul 14 16:25:54 2014 Return-Path: Delivered-To: freebsd-questions@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 35491FD0 for ; Mon, 14 Jul 2014 16:25:54 +0000 (UTC) Received: from mail-yk0-x241.google.com (mail-yk0-x241.google.com [IPv6:2607:f8b0:4002:c07::241]) (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 E45C62908 for ; Mon, 14 Jul 2014 16:25:53 +0000 (UTC) Received: by mail-yk0-f193.google.com with SMTP id 142so109911ykq.8 for ; Mon, 14 Jul 2014 09:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-type:content-transfer-encoding; bh=1qmxxUAE6VtdQkgBOLhXJ7z9gu/MSf4/p46pEAZoCqY=; b=VknejY1Dk3F+qUFp52eRyyJesxotKTm4MSd9ksFZ4fmelYYuYHrT1CCP2ypjg0hWad NKS0DmLxnJA/qwDHOY7U1RE3rMaT3/iM6Z3i/lOjRZ9K3qYXfxDaU01EuK4Uhx8awE5i ouX3TxrdvBT1CnlPgDws6KaDiMdnDqZx+9VM0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-type :content-transfer-encoding; bh=1qmxxUAE6VtdQkgBOLhXJ7z9gu/MSf4/p46pEAZoCqY=; b=SO3ukOhR4nD9LhYN7KUKGk7kgN6nIEojr6CxBAmGIXnDLuPYAFUQirxrA28AyXBRZG nn50zk+pihOdW9jpq6zi/klgiUhHn1NRLQLlrfYulkMRKUztVui27/L8Yr6VvwzQFZFn EGNJ6voHzWB3L/3k1DbRfrzQJUAr5bxUVgg79AdfJcDd+uZIaQV5jTMUCTA537237OZw ck6Bz2Gr6AWk2lK8qq7ILuZL4uyFRcHaQPSTU/YNzf1hUjUXOCnh6SG3aYnNQ94Z/8o/ aHxHWe2LlCrxJ0L6r+n70SMqgxAwtFRDqLjaSvR1c5ThfKUwz4ljiMocQaOTyzVyMvkv NMyQ== X-Gm-Message-State: ALoCoQkHc40RU6Tnf0T0y4Z1SK2drO6HHGJgB/gtO3nkQ+FP89D9mrV+TuH+Y8/jJcMMZM3cRDoE X-Received: by 10.236.141.80 with SMTP id f56mr5603031yhj.149.1405355152446; Mon, 14 Jul 2014 09:25:52 -0700 (PDT) Received: from Papi ([177.158.106.158]) by mx.google.com with ESMTPSA id h34sm22030656yha.50.2014.07.14.09.25.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 14 Jul 2014 09:25:52 -0700 (PDT) Date: Mon, 14 Jul 2014 13:24:22 -0300 From: Mario Lobo To: freebsd-questions@freebsd.org Subject: Re: assembly language Message-ID: <20140714132422.61d33512@Papi> In-Reply-To: <20140714174415.f6920110.freebsd@edvax.de> References: <20140714174415.f6920110.freebsd@edvax.de> Organization: BSD X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd9.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Polytropon X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2014 16:25:54 -0000 On Mon, 14 Jul 2014 17:44:15 +0200 Polytropon wrote: > On Mon, 14 Jul 2014 04:20:05 +0100, Rapheal Elias wrote: > > write and explain a simple program in assembly language > > Sure. > > IEFBR14 START ; start here with label > USING IEFBR14,15 ; establish addressability > B GO ; jump to label "GO" > DC AL1(L'ID) ; declare program name length > ID DC C'IEFBR14' ; declare program name content > DS 0H ; force alignment > GO SR 15,15 ; zero reg #15 > BR 14 ; jump to address in reg #14 > END IEFBR14 ; end of program > > Please note that this is the FreeBSD user questions list, > not the the-dog-doesn't-do-my-homework list. The assembly > language example fits to this list in the same way your > request fits to this list. > > Sorry, couldn't resist. ;-) > LOL :) ! -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] (99% winblows FREE) "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."