Using equated value as operand for MVC?

HLASM for MVS. PL/I for MVS & Enterprise PL/I for z/OS.
Post Reply
bizzy007
New Member
Posts: 5
Joined: Wed Oct 15, 2014 10:25 pm

Using equated value as operand for MVC?

Post by bizzy007 »

Hi,

Can we use an equated value operand for an MVC instruction? If we do use it, can there be some error because of this?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Using euated value as operand for MVC?

Post by Robert Sample »

Can you provide an example of what you mean?

Code: Select all

         MVC   0(80,R04),0(R08) 
uses EQU symbols R04 and R08 so obviously MVC supports equated symbols.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Using euated value as operand for MVC?

Post by enrico-sorichetti »

Can we use an equated value operand for an MVC instruction? If we do use it, can there be some error because of this?
unless the TS asked for the address,length form of the equate

Code: Select all

Symbol   Type   Id     Address  Length   Owner Id Flags Alias-of
MAIN      SD 00000001 00000000 00000020             00


  Active Usings: None
  Loc  Object Code    Addr1 Addr2  Stmt   Source Statement
000000                00000 00020     1 MAIN     CSECT
                 R:C  00000           2          USING MAIN,12
000000 D203 C010 C018 00010 00018     3          MVC   A,B
000006 D207 C010 C018 00010 00018     4          MVC   A1,B
000010                                5          DS    0D
000010                                6 A        DS    CL4
000014                                7          DS    CL4
000018                                8 B        DS    CL8
                      00010 00008     9 A1       EQU   A,8
                                     10          END

                               Ordinary Symbol and Literal Cross Reference
Symbol   Length   Value     Id    R Type Asm  Program   Defn References
A             4 00000010 00000001     C  C                 6    3M    9
A1            8 00000010 00000001     U                    9    4M
B             8 00000018 00000001     C  C                 8    3     4
MAIN          1 00000000 00000001     J                    1    2U
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Assembler & PL/I.”