🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.asm370
Article #487

Re: Need string handling macros

#487
From: Lewis T. Flynn
Date: Fri, 09 Nov 1990 19:39
15 lines
1311 bytes
In article <9011081730.AA21056@ucbvax.Berkeley.EDU> IBM 370 Assembly Programming Discussion List <ASM370@OHSTVMA.BITNET> writes:
>> If you're coding in 370 Assembler, then simply use the equivalent
>> machine instructions.  SUBSTR ends up being either an EX (Execute) of
>> an MVC (Move) instruction for "short" strings ...
>
>Better, use MVCK.  The length is expected to be in a register so you

Uhhh, I don't think so. On most machines, this instruction should be
slower than MVCL and has the side effect of needing to know the correct
key (using the wrong one will generate a privileged operation exception
in problem state). Plus this will only work for for lengths of 256 or
less. The suggested EX of an MVC will be substantially faster on nearly
all machines for this case and a pure MVC will be faster yet.

Terry
Technical Details
Message-ID: <b68i029Ze3Kc01@amdahl.uts.amdahl.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!amdahl!terry
References: <9011081730.AA21056@ucbvax.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!amdahl!terry
From: terry@uts.amdahl.com (Lewis T. Flynn)
Newsgroups: comp.lang.asm370
Subject: Re:  Need string handling macros
Message-ID: <b68i029Ze3Kc01@amdahl.uts.amdahl.com>
Date: 9 Nov 90 19:39:21 GMT
References: <9011081730.AA21056@ucbvax.Berkeley.EDU>
Reply-To: terry@amdahl.uts.amdahl.com (Lewis T. Flynn)
Distribution: inet
Organization: Amdahl Corporation, Sunnyvale CA
Lines: 15