The MVC is not to blame here, remember that the lengthfield in the
instruction is 1 less than the actual length to be moved, so a
lengthfield of 0 in the instruction requests to move 1 byte.
The assembler should not generate this instruction if zero bytes are to
be moved.

However this continuity is often used for EX-ecutable MVC instructions.

... set R2 to the length_to_be_moved-1:
REALMOVE EX R2,MOVE
....
MOVE     FIELDA(*-*),FIELDB

Kees. 

<[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]
on.com>...
> Is *discontinuity in assembler design* a nice way of saying, it's a
bad 
> design?  I would think a length of 1 and 0 are different,
> and MVC should perform accordingly, e.g. if length=0, do nothing.
> 
> 
> 
> 
> > 
> > Should't that be:
> > 
> >    MVI MOZ,C'Z'
> >    MVC MOZ+1(L'MOZ-1),MOZ
> > 
> And, by a discontinuity in assembler design, if L'MOZ=1,
> this clobbers one byte after MOZ rather than generating an
> assembler error as I feel it should.
> 
> -- gil 


**********************************************************************
For information, services and offers, please visit our web site: 
http://www.klm.com. This e-mail and any attachment may contain confidential and 
privileged material intended for the addressee only. If you are not the 
addressee, you are notified that no part of the e-mail or any attachment may be 
disclosed, copied or distributed, and that any other action related to this 
e-mail or attachment is strictly prohibited, and may be unlawful. If you have 
received this e-mail by error, please notify the sender immediately by return 
e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), 
its subsidiaries and/or its employees shall not be liable for the incorrect or 
incomplete transmission of this e-mail or any attachments, nor responsible for 
any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch 
Airlines) is registered in Amstelveen, The Netherlands, with registered number 
33014286 
**********************************************************************


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to