----- Original Message ----- From: "Paul Gilmartin" <[email protected]>
To: <[email protected]>
Sent: Wednesday, April 27, 2022 10:53 AM
Subject: Re: Unexpected C code


On Apr 26, 2022, at 17:30:26, Peter Relson wrote:

Apologies if this was mentioned, since I am only now getting around to reading some of this thread:
Bernd wrote (and others had similar)

LPR: if the register contains 0x80000000, IMO the result will be zero

RTM.  The value is unchanged.

(and overflow),

so you're right ... this will lead to a zero result.

No, the value is unchanged.

IMO, the overflow > will be ignored.

RTM.

Somewhat later in this thread, Thomas David Rivers averred that LPR
Of 0x80000000 results in 0x80000000.

That's almost correct.  The value is unchanged.

The puzzling sequence of instructions was LPR; LCR; SLR 31 to set a
char variable on a nonzero operand.  This works correctly (and I'll
trust the C compliers) only if both LPR and LCR result in 0x80000000,
or at least some nonzero result.

RTM. The value is unchanged.

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Reply via email to