MVC PREFIX+(1),0(R12)



High Level Assembler(HLASM) for MVS & VM & VSE

MVC PREFIX+(1),0(R12)

Postby bobguo » Thu Jun 14, 2012 7:15 am

 000D68 D200 5260 C000 00260 00000  3067          MVC   PREFIX(1),0(R12)                                         08150000
 000D6E D201 5261 C000 00261 00000  3068          MVC   PREFIX+(1),0(R12)                                        08160000 


i think 'MVC PREFIX+(1),0(R12) ' can be rewirted to 'MVC PREFIX+1(1),0(R12)'.
but i have one question, why it was assembled to
D201 5261 C000 00261
instead of
D200 5261 C000 00261
bobguo
 
Posts: 76
Joined: Thu Apr 26, 2012 11:18 am
Location: shanghai
Has thanked: 22 times
Been thanked: 0 time

Re: MVC PREFIX+(1),0(R12)

Postby enrico-sorichetti » Thu Jun 14, 2012 11:10 am

because somewhere PREFIX was defined as a 2 bytes field !
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

These users thanked the author enrico-sorichetti for the post:
bobguo (Thu Jun 14, 2012 11:52 am)
enrico-sorichetti
Global moderator
 
Posts: 3002
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: MVC PREFIX+(1),0(R12)

Postby bobguo » Thu Jun 14, 2012 11:55 am

enrico-sorichetti wrote:because somewhere PREFIX was defined as a 2 bytes field !



you are right! it was defined as a 2 bytes field.
but i don't know how you can ensure its length is 2. could you explain 'MVC PREFIX+(1),0(R12)' in detail. Thx!
bobguo
 
Posts: 76
Joined: Thu Apr 26, 2012 11:18 am
Location: shanghai
Has thanked: 22 times
Been thanked: 0 time

Re: MVC PREFIX+(1),0(R12)

Postby enrico-sorichetti » Thu Jun 14, 2012 12:19 pm

thats because of the format of the SS instruction

8 bits OP CODE
8 bits LENGTH - 1
...
...

since no length was specified the implied length from the DS/DC was used
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

These users thanked the author enrico-sorichetti for the post:
bobguo (Fri Jun 15, 2012 6:17 am)
enrico-sorichetti
Global moderator
 
Posts: 3002
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: MVC PREFIX+(1),0(R12)

Postby bobguo » Thu Jun 14, 2012 2:36 pm

ooo. i see.
Thank you very much
i mistaked '+(1)' as the length of move.
but as Enrico said, it should be offset.
bobguo
 
Posts: 76
Joined: Thu Apr 26, 2012 11:18 am
Location: shanghai
Has thanked: 22 times
Been thanked: 0 time

Re: MVC PREFIX+(1),0(R12)

Postby steve-myers » Mon Jun 18, 2012 11:57 am

There are two types of SS instructions: instructions with one length, from 1 to 256, and instructions with two lengths like PACK, UNPK and the packed decimal arithmetic instructions.

As others have said, it can be very easy to screw up the specification. One would certainly think that after 40+ years writing S/360 style Assembler I'd never mess this up. WRONG! Every few months I blow it, though somewhat differently, like this:

MVC offset(reg),SOURCE

rather than

MVC offset(length,reg),SOURCE

After the S0C4 I smack my forehead (again), throw out useful comments like Stupid, along with other words not to be repeated in mixed company.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to Assembler