Article View: comp.lang.asm370
Article #763Re: MVCL (was Re: why code in 370 Assembler)
From: news
Date: Mon, 29 Apr 1991 04:17
Date: Mon, 29 Apr 1991 04:17
31 lines
2289 bytes
2289 bytes
PERSHNG@YKTVMH3.BITNET ("John A. Pershing Jr. 784-7167", 914) writes:
>Invariably, registers 0, 1, 14, and 15 are available for use in an MVCL
>instruction -- with no saving/restoring of previous contents. In fact,
>I rarely see Real Programmers using any other registers with an MVCL!
Mostly I use R2/3 and R4/5 and sometimes R6/7. Occaisionally I use
R14/15 but very rarely R0/1 because R0 is pretty useless for addresses.
The reason I may be different than what you see usually done is because
of the ways I go about assigning register usage. I usually do it, and
the coding, backwards.
>Note that MOVE LONG cannot handle strings that are longer than 16 Megs
>(the length fields are only the bottom 24 bits of the odd registers).
>However, if you are dealing with objects whose sizes are measured in
>megabytes, you probably shouldn't be moving them around, anyway...
Where this might end up being a problem is where resultant usage of a
program ends up exceeding 16 megabytes by a user of the program who
needed to really stuff the program in ways the original programmer
never thought of. I agree on the advice of not moving so much data.
Doing things like exchanging addresses would be far better. Still
there are times it cannot be avoided, and it would be good advice to
always test lengths when they come from circumstances where you cannot
be sure they are under the 16 megabyte limit.
--
/***************************************************************************\
/ Phil Howard -- KA9WGN -- phil@ux1.cso.uiuc.edu | Guns don't aim guns at \
\ Lietuva laisva -- Brivu Latviju -- Eesti vabaks | people; CRIMINALS do!! /
\***************************************************************************/
Technical Details
Message-ID:
<9104290501.AA06818@ucbvax.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!tut.cis.ohio-state.edu!ucbvax!ucf1vm.BITNET!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!tut.cis.ohio-state.edu!ucbvax!ucf1vm.BITNET!news
From: news@ucf1vm.BITNET
Newsgroups: comp.lang.asm370
Subject: Re: MVCL (was Re: why code in 370 Assembler)
Message-ID: <9104290501.AA06818@ucbvax.Berkeley.EDU>
Date: 29 Apr 91 04:17:33 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: IBM 370 Assembly Programming Discussion List
<ASM370@OHSTVMA.BITNET>
Distribution: inet
Organization: The Internet
Lines: 31