Re: Moves and others

2015-10-28 Thread Steve Smith
I sometimes use MVCK for variable-length moves (in the same key). Usually, a preceding IPK is needed, but EXed MVCs usually require a BCTR or something. It's very convenient (especially when I don't want to decrement the length register), but has the performance warning too. It baffles me that

Re: Moves and others

2015-10-28 Thread Blaicher, Christopher Y.
Just MVCL was tested vs a MVC loop Chris Blaicher Technical Architect Software Development Syncsort Incorporated 50 Tice Boulevard, Woodcliff Lake, NJ 07677 P: 201-930-8234  |  M: 512-627-3803     E: cblaic...@syncsort.com -Original Message- From: IBM Mainframe Assembler List

Re: Assembler callable analogue of C/C++ time()

2015-10-28 Thread Tony Harminc
On 28 October 2015 at 10:12, Paul Gilmartin <0014e0e4a59b-dmarc-requ...@listserv.uga.edu> wrote: > (Cross-posting) > > In the Assembler Callable Services Reference, I find no analogue > of the C/C++ time() function. Is there one? Am I looking in the > wrong place? Is the programmer expected

Re: Assembler callable analogue of C/C++ time()

2015-10-28 Thread Hardee, Chuck
SRLG uses a "source" and "target" register as well as #bits. STCKE MILLSECS LG R1,MILLSECS # IGNORE SECOND DOUBLE WORD SRLG R1,R1,5 # SCOOT RIGHT 5 BITS DSGF R1,=F'100' # DIVIDE BY A MILLION CGHI R0,50 #

Re: Assembler callable analogue of C/C++ time()

2015-10-28 Thread John McKown
>From my reading, time() returns a integer which is "time in seconds since EPOCH". What is wrong with using the assembler STCKE instruction to get the 104 bit TOD clock (in a 16 byte, double word aligned, field). Bit 51 of this value is 0.01 seconds since the z/OS epoch start. So, load bits

Re: Assembler callable analogue of C/C++ time()

2015-10-28 Thread Andreas F. Geissbuehler
Like this? > STCKEMILLSECS > LG R1,MILLSECS # IGNORE SECOND DOUBLE WORD > AGHI R1,1599 # ROUND UP > DSGF R1,=F'3200' # DIVIDE BY 32 MILLION > STG R1,DOUBLETIME On 2015-10-28 17:58, Steve Smith wrote: Also, the