MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Assembly language queries

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
rnanavaty
Beginner


Joined: 12 Apr 2006
Posts: 29
Topics: 20

PostPosted: Tue Jun 14, 2011 6:35 am    Post subject: Assembly language queries Reply with quote

1. What are destructive instructions ?

2. If VAR1, VAR2 and VAR3 are three variables defined in sequence like below.

VAR1 DC C'ABC'
VAR2 DC C'D'
VAR3 DC C'PQRSTUVWX'

What will be the impact of instruction

MVC VAR2,VAR1

Will it affect VAR3 values ?

3. Do every DSECT area require definition by USING assembler command ? If yes how?
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue Jun 14, 2011 8:26 am    Post subject: Reply with quote

For your second query the number of bytes moved is defined by the first operand (the receiving field) - work it out from there.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Tue Jun 14, 2011 10:49 am    Post subject: Reply with quote

rnanavaty,

Check this link

http://www.mainframecoder.com/move.html

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Tue Jun 14, 2011 1:35 pm    Post subject: Reply with quote

Quote:
What are destructive instructions ?
Instructions that cause a "receiving field" to be modified (if i am on the same page).

How do you want to consider registers that are loaded with data or an address. . .

An Add Packed modifies the receiving field. And on and on. . .

Quote:
Do every DSECT area require definition by USING assembler command ?
No.
_________________
All the best,

di
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group