Re: Why is division by zero permitted? (It's actually very useful! Here's why)

2013-10-25 Thread Paul Gilmartin
On 2013-10-24 09:35, David Cole wrote: The reason that this useful is that this quirk can be exploited to create, for example, a MAX or MIN function that is evaluated at assembly time. (Maybe this has changed, but the last time I looked, the Assembler did not offer native MAX and MIN

Re: Why is division by zero permitted?

2013-10-24 Thread robin
From: glen herrmannsfeldt g...@ugcs.caltech.edu Sent: Thursday, October 24, 2013 4:22 PM From C28-6514-5 on bitsavers, on page 16: What manual is that; for what system, and what date? Division by zero is permitted and yields a zero result. After that, (and presumably also earlier) it has

Re: Why is division by zero permitted?

2013-10-24 Thread Rob van der Heij
Ask someone for a web browser and type google.com ;-) OS assembler language; 360, and december 1967 Many moons ago, a friend (who went to math school) showed me his scars and explained that it were evil that compilers could optimize in such a way that an attempt to divide by zero would go

Re: Why is division by zero permitted?

2013-10-24 Thread robin
From: Rob van der Heij rvdh...@gmail.com Sent: Thursday, October 24, 2013 9:35 PM Ask someone for a web browser and type google.com ;-) OS assembler language; 360, and december 1967 I have better things to do than do other people's research.

Re: Why is division by zero permitted?

2013-10-24 Thread DASDBILL2
, October 24, 2013 5:35:32 AM Subject: Re: Why is division by zero permitted? Ask someone for a web browser and type google.com  ;-)      OS assembler language; 360, and december 1967 Many moons ago, a friend (who went to math school) showed me his scars and explained that it were evil

Re: Why is division by zero permitted?

2013-10-24 Thread Martin Truebner
Robin, What manual is that; for what system, and what date? that was your question. I have better things to do than do other people's research. So you are not interested in any answer to your question I guess. -- Martin Pi_cap_CPU - all you ever need around MWLC/SCRT/CMT in z/VSE more at

Re: Why is division by zero permitted?

2013-10-24 Thread robin
From: DASDBILL2 dasdbi...@comcast.net Sent: Thursday, October 24, 2013 10:44 PM The Assembler language book does not describe how processor instructions work. Mine does. And most assembler langage books do also. Processor instructions never have allowed division by zero. Some early

Re: Why is division by zero permitted?

2013-10-24 Thread Jon Perryman
Paul Gilmartin said HLASM (not S360). The standard divide instructions get S0C9 when dividing by 0. Is it floating point that allows divide by 0? Is it the macro assembler SETA that allows it? Jon Perryman. - Original Message - From: Rob van der Heij rvdh...@gmail.com Ask someone

Re: Why is division by zero permitted?

2013-10-24 Thread John Gilmore
Let us stipulate that z/Architecture divide instructions, all of them, throw exceptions when a zero divisor is detected. That said, things then get more complicated. These exceptions cannot be disabled using SPM. There is no program-mask bit available for for doing so. They can, however, be

Re: Why is division by zero permitted? (It's actually very useful! Here's why)

2013-10-24 Thread David Cole
At 10/23/2013 08:30 PM, Paul Gilmartin wrote: OK. Pure HLASM. I've long wondered why division by zero is permitted in arithmetic expressions when otherwise overflows (even in division) are reported as errors. The only rationale I can think of (and a poor one) is that it was initially

Re: Why is division by zero permitted?

2013-10-24 Thread Paul Gilmartin
On 2013-10-24, at 04:35, Rob van der Heij wrote: Ask someone for a web browser and type google.com ;-) OS assembler language; 360, and december 1967 ... which seems to take me to a bitsavers page, already discussed here. Many moons ago, a friend (who went to math school) showed me his

Re: Why is division by zero permitted?

2013-10-24 Thread Hall, Keven
24, 2013 00:22 To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Why is division by zero permitted? From C28-6514-5 on bitsavers, on page 16: Division by zero is permitted and yields a zero result. After that, (and presumably also earlier) it has to stay that way as code (macros) might depend

Why is division by zero permitted?

2013-10-23 Thread Paul Gilmartin
On 2013-10-23 17:54, Kurt LeBesco wrote: I've been reading quietly and wondering how the dialog drifted off to rexx and pl1 land. Can we get back on topic? Thanks OK. Pure HLASM. I've long wondered why division by zero is permitted in arithmetic expressions when otherwise overflows (even

Re: Why is division by zero permitted?

2013-10-23 Thread robin
From: Paul Gilmartin paulgboul...@aim.com Sent: Thursday, October 24, 2013 11:30 AM OK. Pure HLASM. I've long wondered why division by zero is permitted It is? According to my manual, the operation is suppressed, and an exception occurs. in arithmetic expressions when otherwise

Re: Why is division by zero permitted?

2013-10-23 Thread Blaicher, Christopher Y.
permitted? On 2013-10-23 17:54, Kurt LeBesco wrote: I've been reading quietly and wondering how the dialog drifted off to rexx and pl1 land. Can we get back on topic? Thanks OK. Pure HLASM. I've long wondered why division by zero is permitted in arithmetic expressions when otherwise overflows (even

Re: Why is division by zero permitted?

2013-10-23 Thread Jon Perryman
What arithmetic expression allows divide by 0? Jon Perryman. From: Paul Gilmartin paulgboul...@aim.com OK. Pure HLASM. I've long wondered why division by zero is permitted in arithmetic expressions when otherwise overflows (even in division) are reported

Re: Why is division by zero permitted?

2013-10-23 Thread glen herrmannsfeldt
From C28-6514-5 on bitsavers, on page 16: Division by zero is permitted and yields a zero result. After that, (and presumably also earlier) it has to stay that way as code (macros) might depend on that. There is no reason given. -- glen