View previous topic :: View next topic |
Author |
Message |
rnanavaty Beginner
Joined: 12 Apr 2006 Posts: 29 Topics: 20
|
Posted: Tue Jun 14, 2011 6:35 am Post subject: Assembly language queries |
|
|
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 |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Tue Jun 14, 2011 8:26 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12382 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Tue Jun 14, 2011 1:35 pm Post subject: |
|
|
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 |
|
 |
|
|