Re: ICTL breaks COPY members?

2020-03-18 Thread Ian Worthington
The HLASM LangRef is, as far as I can see, very explicit and clear about the effect of the ICTL instruction on the COPY members, viz: COPY Instruction: The ICTL instruction does not affect the format of statements brought in by a COPY instruction or generated from a library macro definition. T

Re: ICTL breaks COPY members?

2020-03-18 Thread Ian Worthington
.startCpxhdr anop ,                                                            4                                        = mnote *,'alcsI 0061001d    is &alcsId'                                 00611018 ** ASMA144E Begin-to-continue columns not blank - mnote                   

Re: ICTL breaks COPY members?

2020-03-18 Thread Ian Worthington
Curses.  These have been line-wrapped into oblivion.  How do I stop the listserv doing that? i On Wednesday, March 18, 2020, 03:50:59 PM GMT, Ian Worthington <0c9b78d54aea-dmarc-requ...@listserv.uga.edu> wrote:

Re: ICTL breaks COPY members?

2020-03-18 Thread Ian Worthington
Worthington <0c9b78d54aea-dmarc-requ...@listserv.uga.edu> wrote: Curses.  These have been line-wrapped into oblivion.  How do I stop the listserv doing that? i     On Wednesday, March 18, 2020, 03:50:59 PM GMT, Ian Worthington <0c9b78d54aea-dmarc-requ...@listserv.uga.edu> wrote: 

Re: ICTL breaks COPY members?

2020-03-20 Thread Ian Worthington
Thanks Jonathan, much appreciated. Still waiting on access approval to raise an official report for you. Ian On Friday, March 20, 2020, 11:38:10 AM GMT, Jonathan Scott wrote: Ref:  Your note of Wed, 18 Mar 2020 17:58:43 + Jonathan Scott wrote: > The problem occurs on the target ins

Re: IBM z ISA assembler & emulator.

2020-04-22 Thread Ian Worthington
Microfocus used to have one.  It was good enough to get ALCS running on a PC. There's a few open source projects. z390 and, of course, Hercules, spring to mind.  I think there's one built especially for education too, but its name has long since slipped into the murky depths of what passes for m

Re: How can I order the HLASM for Linux on Z?

2021-08-01 Thread Ian Worthington
Ah, IBM, we do so love you.  If it was difficult to write, it should be difficult to buy, right? This, in the z/tpf docs, might provide a clue: o  For standard processors, order the IBM® High Level Assembler for Linux for IBM Z Feature (5950) of IBM High Level Assembler for z/OS®, z/VM®, and z/

Re: z/Architecture Principles of Operation pdf

2021-11-15 Thread Ian Worthington
I loved bookmaster back in the day (though the script underpinnings, not so much), never really found an adequate tool to replace it.  Tried lyx for a bit and was finally persuaded to use latex, but it's still not as productive as bm was. Anyone know what IBM uses these days? Best wishes, Ian 

Re: z/Architecture Principles of Operation pdf

2021-11-15 Thread Ian Worthington
, November 15, 2021, 11:34:14 AM GMT-5, Paul Gilmartin <0014e0e4a59b-dmarc-requ...@listserv.uga.edu> wrote: On Nov 15, 2021, at 08:38:32, Ian Worthington wrote: > > I loved bookmaster back in the day (though the script underpinnings, not so > much), never really found an a

Re: z/Architecture Principles of Operation pdf

2021-11-15 Thread Ian Worthington
ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: z/Architecture Principles of Operation pdf On Nov 15, 2021, at 08:38:32, Ian Worthington wrote: > > I loved bookmaster back in the day (though the script underpinnings, not so > much), never really found an adequate tool to replace it.  Tried

Re: z/Architecture Principles of Operation pdf

2021-12-03 Thread Ian Worthington
a Linux machine instead. -----Original Message- From: IBM Mainframe Assembler List On Behalf Of Ian Worthington Sent: Monday, November 15, 2021 11:16 AM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: z/Architecture Principles of Operation pdf Have you considered running a zPDT system, or get

Re: CDZ2 Instruction

2021-12-09 Thread Ian Worthington
Isn't CDZ2 a crypto instruction? Best wishes, Ian ... On Thursday, December 9, 2021, 09:31:03 AM GMT-5, esst...@juno.com wrote: . Anyone familiar with or hreard of  a CDZ2 or CDT2 Assembler instruction ? A GOOGLE search did not provide any fruitful information. Why would an applicati

Re: CDZ2 Instruction

2021-12-09 Thread Ian Worthington
: IBM Mainframe Assembler List [ASSEMBLER-LIST@LISTSERV.UGA.EDU] on behalf of Ian Worthington [0c9b78d54aea-dmarc-requ...@listserv.uga.edu] Sent: Thursday, December 9, 2021 9:52 AM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: CDZ2 Instruction Isn't CDZ2 a crypto instruction? Best wi

Signed/unsigned operations

2022-04-14 Thread Ian Worthington
I noticed today that GCC generates for: static __uint32_t sumu32;  // unsigned int static __uint64_t sumu64;  // unsigned long void addStuff(__uint64_t a64, __uint64_t b64, __uint32_t a32, __uint32_t b32 ) {     sumu32 = a32 + b32;     sumu64 = a64 + b64; } the following: 117:     sumu32 = a

Re: Signed/unsigned operations

2022-04-14 Thread Ian Worthington
 ... On Thursday, April 14, 2022, 06:29:42 PM GMT+2, Ngan, Robert (DXC Luxoft) wrote: STRL/STGRLl? Is the GCC compiler generating non-reentrant code? Robert Ngan DXC Luxoft -Original Message- From: IBM Mainframe Assembler List On Behalf Of Ian Worthington Sent: Thursday

Re: Signed/unsigned operations

2022-04-15 Thread Ian Worthington
Both signed and unsigned integer operations are required to either wrap or give undefined results in C.  To my mind this is a horrible problem which gets kicked down the road by the expansion of the size of variable size every few years, presumably accompanies by the sacrificing of farmyard anim

Re: Signed/unsigned operations

2022-04-15 Thread Ian Worthington
extension is an issue, e.g., adding a word to a grande register.. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Assembler List [ASSEMBLER-LIST@LISTSERV.UGA.EDU] on behalf of Ian Worthington [0c9b78d54aea-dmarc-requ...@l

Unexpected C code

2022-04-19 Thread Ian Worthington
Noticed today that the GCC C compiler generated an unexpected sequence of instructions for an AND and TEST:     bool overflow = (ccpm & carrybit) != 0;    // check if carry bit set  109          .loc 1 189 0  110 0078 5810B25C         l    %r1,604(%r11)    # D.7949, ccpm  111 007

Re: Unexpected C code

2022-04-20 Thread Ian Worthington
of the N operation would stay zero throughout the LPR / LCR sequence, and the SRL would move a zero bit in the rightmost bit position. The final STC moves the rightmost 8 bits to the bool variable; bool (no C standard type) is probably a typedef which means char. I hope, I understood the coding

Re: Unexpected C code

2022-04-20 Thread Ian Worthington
>  C programmers don't give a damn about overflows.  An unfortunate consequence, > probably, of hardware architectures which, unlike 360, lack unsigned > instructions, forcing compilers to generate signed instructions for > unsigned operations. I've spent more of the last week finding out more abou

Re: Unexpected C code

2022-04-20 Thread Ian Worthington
That's a great explanation Thomas. I'm curious though:  how come both compilers produce this same sequence of instructions?  I'd have thought it was a rather obscure combination.  Is it perhaps more common than I'd suspected, or do GCC and Dignus have some common heritage in the back end? Best

Detection of integer overflow

2022-04-20 Thread Ian Worthington
Whilst looking at reliable techniques to detect signed and unsigned overflow in integer multiplication I was checking out the late John Erhman's "Assembler Language Programming for IBM System z™ Servers" in which I discovered he presented this problem and solution: 18.2.13.(2)+ A programmer want

Re: Detection of integer overflow

2022-04-20 Thread Ian Worthington
From: IBM Mainframe Assembler List [ASSEMBLER-LIST@LISTSERV.UGA.EDU] on behalf of Ian Worthington [0c9b78d54aea-dmarc-requ...@listserv.uga.edu] Sent: Wednesday, April 20, 2022 9:46 AM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Detection of integer overflow Whilst looking at reliable techniques

Re: Unexpected C code

2022-04-21 Thread Ian Worthington
I believe that to be standards compliant unsigned integers are /required/ to wrap without warning. Signed integers can do whatever they want, including, in the final resort, even behaving sensibly. Best wishes / Mejores deseos /  Meilleurs vœux Ian ... On Thursday, April 21, 2022, 02:55

Re: Unexpected C code

2022-04-21 Thread Ian Worthington
a59b-dmarc-requ...@listserv.uga.edu> wrote: On Apr 21, 2022, at 06:59:33, Ian Worthington wrote: > > I believe that to be standards compliant unsigned integers are /required/ to > wrap without warning. >  That's true but irrelevant. > Signed integers can do whatever the

Re: Unexpected C code

2022-04-27 Thread Ian Worthington
My assumption is that these instructions are, or at least were, implemented in hardware gates, so these "boundary conditions" are likely to be mechanistic in nature rather then implemented via "if it's a funny number then do this different thing" programming. We sat down the other day and confi

Re: Assembler courses

2022-09-17 Thread Ian Worthington
Non-reentrant programming is /required/ for some platforms -- TPF, ALCS, (and, I would suspect, CICS?)  Many programmers /only/ learn non-reentrant programming. I would very much approve of the idea of starting with the simple stuff first: which in my book would be baseless, non-reentrant progra

ADD LOGICAL WITH SIGNED IMMEDIATE HIGH N

2022-11-15 Thread Ian Worthington
I noticed today that ALSIH R1,I2 has a partner-in-crime ALSIHN R1,I2 which differs only, as far as I can tell, in that the later does not set the condition code. I'm curious what the need was for a distinct instruction to do the second.  Anyone know? Best wishes / Mejores deseos /  Meill

Off topic: mainframe group?

2022-11-22 Thread Ian Worthington
It seems that bit.listserv.ibm-main may have died, at at least have next to zero traffic, which amounts to the same thing. Anyone here know of a suitable replacement for z architectural questions? Best wishes / Mejores deseos /  Meilleurs vœux Ian ...

Re: Off topic: mainframe group?

2022-11-22 Thread Ian Worthington
. On Tuesday, November 22, 2022 at 02:46:44 PM GMT+1, Steve Smith wrote: IBM-MAIN has plenty of traffic, shows no sign of slowing down. sas On Tue, Nov 22, 2022 at 5:00 AM Ian Worthington < 0c9b78d54aea-dmarc-requ...@listserv.uga.edu> wrote: > It seems that bit.listserv.ibm

Re: Off topic: mainframe group?

2022-11-22 Thread Ian Worthington
https://listserv.ua.edu/cgi-bin/wa?A0=IBM-MAIN And yes, you have to register and login to see the archive. Peter -Original Message- From: IBM Mainframe Assembler List On Behalf Of Ian Worthington Sent: Tuesday, November 22, 2022 8:58 AM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: R

Re: lower case inside parm field

2022-12-29 Thread Ian Worthington
Iirc, you just put it in quotes?  Away from the office now so can't check. I Sent from Yahoo Mail on Android On Thu, 29 Dec 2022 at 13:17, Ze'ev Atlas<01774d97d104-dmarc-requ...@listserv.uga.edu> wrote: Does any of you know how how to put a lower case character in the PARM field of JC

Re: lower case inside parm field

2022-12-29 Thread Ian Worthington
Can you show us what you've got? I Sent from Yahoo Mail on Android On Thu, 29 Dec 2022 at 13:23, Ze'ev Atlas wrote: nope, it is already bracketed with quotes Ze'ev Atlas On Thursday, December 29, 2022 at 01:21:00 PM EST, Ian Worthington <0c9b7

Re: Will z/OS be obsolete in 5 years?

2023-07-19 Thread Ian Worthington
Is this correct?  My understanding is that the source is still available but now only to customers in order to prevent downstream suppliers from using rhel as their base. Of course I've slept since I saw this discussion so caveat emptor... Best wishes / Mejores deseos /  Meilleurs vœux Ian ...

Re: looking for limbo languages - how low can you go?

2023-07-19 Thread Ian Worthington
> Java was a language looking for a purpose. Java was a language designed for set top boxes Best wishes / Mejores deseos /  Meilleurs vœux Ian ... On Wednesday, July 19, 2023 at 03:24:34 PM GMT+2, Rick Troth wrote: On 7/18/23 19:30, Paul Gilmartin wrote: >> *Java was a language loo

Re: Will z/OS be obsolete in 5 years?

2023-07-19 Thread Ian Worthington
html -- Tom Marchant On Wed, 19 Jul 2023 07:03:05 +, Ian Worthington wrote: >Is this correct?  My understanding is that the source is still available but >now only to customers in order to prevent downstream suppliers from using rhel >as their base. >Of course I've slept s

Re: Will z/OS be obsolete in 5 years?

2023-07-19 Thread Ian Worthington
thheld their changes to GCC? -- Tom Marchant On Wed, 19 Jul 2023 19:35:09 +0000, Ian Worthington wrote: >That's what I had though, but apparently it's not correct.  In fact, for many >years IBM has withheld its own changes to GCC for private sale to its own >customers, apparently quite legally.

Re: Will z/OS be obsolete in 5 years?

2023-07-19 Thread Ian Worthington
ally known as "Linux", although Linux is actually just the kernel) is licensed under GPL v3 https://www.gnu.org/licenses/gpl-3.0.en.html -- Tom Marchant On Wed, 19 Jul 2023 07:03:05 +, Ian Worthington wrote: >Is this correct?  My understanding is that the source is still ava

Re: Will z/OS be obsolete in 5 years?

2023-07-19 Thread Ian Worthington
Marchant <00a69b48f3bb-dmarc-requ...@listserv.uga.edu> wrote:  Do you have evidence that IBM has withheld their changes to GCC? -- Tom Marchant On Wed, 19 Jul 2023 19:35:09 +, Ian Worthington wrote: >That's what I had though, but apparently it's not correct.  In fact, for many

Re: looking for limbo languages - how low can you go?

2023-07-19 Thread Ian Worthington
> Indeed! And the generated code between opt(0) and opt(3) is so different, > it's hard to believe it's doing the same thing, yet it is. It's impressive as > hell. In the one compute-intensive case that we measured, unoptimized used > half again as much CPU. In fact it convinced me that we shou

Re: Will z/OS be obsolete in 5 years?

2023-07-20 Thread Ian Worthington
work are being offered to the general public at no charge under subsection 6d. -- Tom Marchant On Wed, 19 Jul 2023 20:42:52 +, Ian Worthington wrote: >Yes..  But, as I said, I believe that they are allowed to do so. > > >Best wishes / Mejores deseos /  Meilleurs vœux > >Ian

Re: Tutorials for z and HLASM?

2023-10-06 Thread Ian Worthington
$2,500 per user though. Best wishes / Mejores deseos /  Meilleurs vœux Ian ... On Friday, October 6, 2023 at 04:01:14 AM GMT+2, Gary Weinhold wrote: Interskill has courses that IBM gives badges for: https://interskill.com/ibm-credentials/ibm-badges/ I don't really know anything abo

Re: Tutorials for z and HLASM?

2023-10-06 Thread Ian Worthington
I believe it might be at http://zseries.marist.edu/enterprisesystemseducation/assemblerlanguageresources/Assembler.V2.alntext%20V2.00.pdf but my connection is apparently glacial this morning and I can't verify it. Failing that, search for: https://www.google.com/search?q=erhman+pdf+%22Assembler+

Re: Tutorials for z and HLASM?

2023-10-06 Thread Ian Worthington
Maybe then something like https://punctiliousprogrammer.com/the-video-course/ ? Best wishes / Mejores deseos /  Meilleurs vœux Ian ... On Friday, October 6, 2023 at 02:54:39 PM GMT+2, Seymour J Metz wrote: I'm looking for an actual class, or at least a course outline and exercises?

YOPs to be avoided?

2010-10-17 Thread Ian Worthington
We have some programs that need to support Y ops. I was planning to just switch the whole product to assemble with optable(yop) but I found PJ30456 which includes the unsettling comment: New instructions must be assembled using the YOP instruction set on LINUX HLASM. The rest of the system is ass

Re: Don Higgins has retired from z390 development again

2024-03-06 Thread Ian Worthington
Now that brings back some memories.  iirc it was significantly easier to debug macros under pc370 than hlasm, though the exact reasons I must admit I've forgotten. I think it was also available for OS/2, for which one of our esteemed colleagues modified ALCS to assemble under. Best wishes / Me

Re: OPCODE tables

2024-03-20 Thread Ian Worthington
I have a dim and distant memory that the Hercules folks might be on top of this as, iirc, isn't is possible to change hardware level with a configuration parameter? Best wishes / Mejores deseos /   Best wishes Ian ... On Wednesday, March 20, 2024 at 10:12:03 PM GMT+1, Mark Hammack wrot

Re: Toolkit support for compare and jump?

2024-06-07 Thread Ian Worthington
> However, that's not how IBM works. Now isn't that just the truth? We identified a missing essential feature in an IBM product recently, coded up a solution, and sent it in a PMR to the owners. You can guess their response. IBM is like the man from Del Monte's evil twin. Best wishes / Mejores des

Re: Provenance of term "yonder"?

2024-07-01 Thread Ian Worthington
Nice reference.  That was the first that came to my mind too. Though the word appears to predate Neale by some 5 centuries:   https://www.etymonline.com/word/yonder Best wishes / Mejores deseos /  Meilleurs vœux Ian ... On Monday, July 1, 2024 at 12:55:41 PM GMT+2, Colin Paice wrote: