On 5/7/2012 7:54 AM, Tom Marchant wrote:
On Sun, 6 May 2012 23:23:14 -0400, Robert A. Rosenberg wrote:

The problem is that before 64 AMODE you had 3 AMODE Choices -
24-Only, 31-Only, or BOTH 24 and 31 (ie: Any).

Where does AMODE(ANY) mean both?  Certainly not on the
AMODE assembler instruction or in the binder.

AMODE ANY means the program will be given control in
the AMODE of its invoker and supports running in AMODE24
or AMODE31, whichever it's caller is currently running in.

And, yes, you can specify AMODE ANY in the Assembler and
in the binder.

In fact, the ASSEMBLER supports:

   AMODE {24|31|64|ANY|ANY31|ANY64}

the Binder supports

   AMODE  {24|31|ANY|64|MIN}


If I code AMODE-31 I
can have problems with something that needs AMODE-24.

yes.

There needs to
be am AMODE (such as ALL) to say that all 3 AMODES (24/31/64) are
supported.

That makes no sense.  Addressing mode is set in the PSW
and it tells the processor how to behave.


It does make sense, if you consider it as the required /
recommended / suggested initial AMODE, recognizing that
programs may change AMODE as they run.


--

Kind regards,

-Steve Comstock
The Trainer's Friend, Inc.

303-355-2752
http://www.trainersfriend.com

* To get a good Return on your Investment, first make an investment!
  + Training your people is an excellent investment

* Try our tool for calculating your Return On Investment
    for training dollars at
  http://www.trainersfriend.com/ROI/roi.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to