🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.asm370
Article #359

Re: Establishing a code base reg (was: SAVE/RETURN macros in AMODE 64)

#359
From: Steve Comstock
Date: Mon, 19 Sep 2005 14:47
50 lines
3338 bytes
Bob Raicer wrote:
>   :  Date:    Fri, 16 Sep 2005 13:41:17 -0600
>   :  From:    Steve Comstock <steve@trainersfriend.com>
>   :  Subject: Re: SAVE/RETURN macros in AMODE 64
>   :
>   :  Wait.
>   :
>   :  1. Why are you using BALR / USING? When you
>   :      are entered in in AMOD64, you _must_
>   :      user LARL to get your base address
>   :
>
> Why do you believe your assertion that one must use LARL to
> estabish a base register is true?
>
> The following instruction sequences will produce the same result
> when executing in 64-bit addressing mode, namely, GPR 12 will
> contain the pure 64-bit address of the label NSI.
>
>   Case 1:
>            BASR  12,0
>      NSI   DC    0H'0'
>
>
>   Case 2:
>            BALR  12,0
>      NSI   DC    0H'0'
>
>
>   Case 3:
>            LARL  12,NSI
>      NSI   DC    0H'0'
>
>
> Bob Raicer
>

Well, you are quite right. Never thought of those.
I was trying to focus on breaking the habit of
using the contents of R15 having the entry point
address on entry to a program, since a large number
of programs rely on LR  12,15 or some such to
get their starting addressability; that simply
will not work in AMODE64.

Thanks for the alternative insight.

Kind regards,

-Steve Comstock
Technical Details
Message-ID: <432ECF8D.8090605@trainersfriend.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!sn-xit-03!sn-xit-11!sn-xit-05!sn-xit-08!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!trainersfriend.com!steve
References: <200509191424.j8JEOsUE004258@listserv.cc.uga.edu>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcdcb,3c364ef8385d7aa
X-Google-Attributes: gidfcdcb,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!sn-xit-03!sn-xit-11!sn-xit-05!sn-xit-08!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!trainersfriend.com!steve
From: Steve Comstock <steve@trainersfriend.com>
Newsgroups: bit.listserv.asm370
Subject: Re: Establishing a code base reg (was: SAVE/RETURN macros in
              AMODE 64)
Date: Mon, 19 Sep 2005 08:47:41 -0600
Organization: SAS Inc.
Lines: 50
Sender: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU>
Message-ID: <432ECF8D.8090605@trainersfriend.com>
References: <200509191424.j8JEOsUE004258@listserv.cc.uga.edu>
Reply-To: IBM Mainframe Assembler List <ASSEMBLER-LIST@listserv.uga.edu>
NNTP-Posting-Host: mozart.unx.sas.com
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: foggy.unx.sas.com 1127141933 16986 10.19.150.41 (19 Sep 2005 14:58:53 GMT)
X-Complaints-To: usenet@unx.sas.com
NNTP-Posting-Date: Mon, 19 Sep 2005 14:58:53 +0000 (UTC)
Comments: Gated by NETNEWS@VM.SAS.COM
Return-Path: <owner-assembler-list@LISTSERV.UGA.EDU>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
X-Spam: [F=0.0100000000; heur=0.500(-26400); stat=0.010;
        spamtraq-heur=0.500(2005091902)]
X-MAIL-FROM: <steve@trainersfriend.com>
X-SOURCE-IP: [209.238.255.225]
X-Loop-Detect: 1
X-DistLoop-Detect: 1
Approved-By: Steve Comstock <steve@TRAINERSFRIEND.COM>
In-Reply-To: <200509191424.j8JEOsUE004258@listserv.cc.uga.edu>
Return-Path: owner-assembler-list@LISTSERV.UGA.EDU
X-OriginalArrivalTime: 19 Sep 2005 14:58:51.0147 (UTC)
                       FILETIME=[A56B35B0:01C5BD2A]
Originator: daemon@mozart.unx.sas.com