🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.asm370
Article #480

Re: Need string handling macros

#480
From: Michael Stack
Date: Thu, 08 Nov 1990 17:24
14 lines
1097 bytes
> 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
don't need to EXecute, and it is a true length so you don't need to
worry about decrementing by one (and it can be zero if that's useful).

The only drawback is that it requires an R3 operand containing the
storage key of the source location.  See POO for an example.

Michael Stack
Northern Illinois University
Bitnet:   A01MES1@NIU
Technical Details
Message-ID: <9011081730.AA21056@ucbvax.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!NIU.BITNET!A01MES1

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!NIU.BITNET!A01MES1
From: A01MES1@NIU.BITNET (Michael Stack)
Newsgroups: comp.lang.asm370
Subject: Re:  Need string handling macros
Message-ID: <9011081730.AA21056@ucbvax.Berkeley.EDU>
Date: 8 Nov 90 17:24:00 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: IBM 370 Assembly Programming Discussion List
              <ASM370@OHSTVMA.BITNET>
Distribution: inet
Organization: The Internet
Lines: 14