Re: Learning ED instruction - need some help
Posted: Mon Aug 27, 2012 1:42 am
It seems I am discovering very simple mistakes in my questions every time I visit it. I have corrected the mistake, pls refer the below question for the correct version ::
The 2 typo'd posts have been removed.
Question::
Given X DC PL3'1234' and MASK DC XL6'402020202020', show the value of WK6 or WK4 after each of the following, pls note that each step is an individual step and and there is no co-relation between them :
1. MVC WK6,MASK
ED WK6,X
2. MVC WK4,MASK
ED WK4,X+1
WK6 DS CL6
WK4 DS CL4
I have reached to the below solution for each step, can you pls confirm if that is correct ::
1. MVC WK6,MASK
ED WK6,X
WK6 = x'402020202020' - after MVC instruction
WK6 = x'4040F1F2F3F4' - after ED instruction
2. MVC WK4,MASK
ED WK4,X+1
WK4 = x'40202020' - after MVC instruction
WK4 = x'40F2F3F4' - after ED instruction
Can you pls confirm if my outputs of WK6 and WK4 are correct. I am especially concerned for WK4 output.
The 2 typo'd posts have been removed.
Question::
Given X DC PL3'1234' and MASK DC XL6'402020202020', show the value of WK6 or WK4 after each of the following, pls note that each step is an individual step and and there is no co-relation between them :
1. MVC WK6,MASK
ED WK6,X
2. MVC WK4,MASK
ED WK4,X+1
WK6 DS CL6
WK4 DS CL4
I have reached to the below solution for each step, can you pls confirm if that is correct ::
1. MVC WK6,MASK
ED WK6,X
WK6 = x'402020202020' - after MVC instruction
WK6 = x'4040F1F2F3F4' - after ED instruction
2. MVC WK4,MASK
ED WK4,X+1
WK4 = x'40202020' - after MVC instruction
WK4 = x'40F2F3F4' - after ED instruction
Can you pls confirm if my outputs of WK6 and WK4 are correct. I am especially concerned for WK4 output.