Paul Gilmartin wrote:
I'm astonished. I had believed that strcpy() was primeval. (This is
strcpy(), isn't it?) Of course, it's always possible that the
RTL implements strcpy() with exactly the above code.
What does the above look like in COBOL? In assembler, it's
TRT to find the terminating NUL, then EX(MVC) (or MVCL) to
move the data. Does COBOL provide these (particularly the TRT)
as BIFs?
(In fact, I belive z/Series now has a hardware assist for MVC,
but I haven't read so far in the PoOP.)
Way back in the early 1990s, _long_ before z/Architecture, the MVST
instruction was implemented to perform such string manipulation along
with its cousins CLST and SRST. SRSTU was added fairly recently to
z/Architecture to handle UNICODE.
--
-----------------------------------------------------------------
| Edward E. Jaffe | |
| Mgr, Research & Development | [EMAIL PROTECTED] |
| Phoenix Software International | Tel: (310) 338-0400 x318 |
| 5200 W Century Blvd, Suite 800 | Fax: (310) 338-0801 |
| Los Angeles, CA 90045 | http://www.phoenixsoftware.com |
-----------------------------------------------------------------
----------------------------------------------------------------------
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