home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!stanford.edu!unixhub!fnnews.fnal.gov!overload.lbl.gov!zeus.ieee.org!europa.asd.contel.com!paladin.american.edu!auvm!UCLAMVS.BITNET!CSYSMAS
- Message-ID: <IBM-MAIN%92110917352089@RICEVM1.RICE.EDU>
- Newsgroups: bit.listserv.ibm-main
- Date: Mon, 9 Nov 1992 15:33:00 PST
- Sender: IBM Mainframe Discussion list <IBM-MAIN@RICEVM1.BITNET>
- From: Michael Stein <CSYSMAS@UCLAMVS.BITNET>
- Subject: Re: Using EXTRACT macro to detect execution under TSO
- Lines: 17
-
- > Several months ago, I asked how to determine, from Assembler, whether
- > the program is executing under TSO. You collectively pointed me to
- > the EXTRACT macro, which I've been using happily for months to do just
- > that. Suddenly, it's not working, and I'm at a loss to explain why.
- > I would appreciate any insight into what's wrong with the following
- > code. That is, I want to know why I get a high-order byte of X'00' in
- > TSOFLAG from EXTRACT when I execute the program from the terminal!
-
- EXTRACT FIELDS=(TSO) returns the *address* of the flag byte, not
- the byte itself.
- > EXTRACT TSOFLAG,'S',FIELDS=(TSO) Get flag indicating TSO
- > TM TSOFLAG,TSOYES
- > BO TSO
-
- Instead:
- L R1,TSOFLAG
- TM 0(R1),TSOYES
-