From owner-freebsd-questions@FreeBSD.ORG Mon Jul 14 15:44:25 2014 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3B6E6F64 for ; Mon, 14 Jul 2014 15:44:25 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F2CAC24EA for ; Mon, 14 Jul 2014 15:44:24 +0000 (UTC) Received: from r56.edvax.de (port-92-195-69-249.dynamic.qsc.de [92.195.69.249]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 65C6D3CC5C; Mon, 14 Jul 2014 17:44:16 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s6EFiF5k001934; Mon, 14 Jul 2014 17:44:15 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 14 Jul 2014 17:44:15 +0200 From: Polytropon To: Rapheal Elias Subject: Re: assembly language Message-Id: <20140714174415.f6920110.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@FreeBSD.org 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 15:44:25 -0000 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. ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...