Re: Unsigned 64-bit numbers

2022-04-28 Thread Charles Mills
Type first; read manual second :-( At least my mind is in the right place. I must be getting old. It used to be in the gutter. Charles -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Steve Smith Sent: Thursday, April 28,

Re: Unsigned 64-bit numbers

2022-04-28 Thread Steve Smith
Your mind is in the right place, but your text is not. You can LGF or LLGF a fullword into a full register. LG loads a doubleword, whether you point it at one or not. i.e. an LG Rx,=X'87654321' results in x'87654321garbage'. There now exist LGH, LH, LLGH, LLH, LGB, LB, LLGC, and LLC for all

Re: Unsigned 64-bit numbers

2022-04-28 Thread Charles Mills
64 bits is 64 bits whether the high bit is a sign or part of the number. Loading 64 bits into a register loads 64 bits unaltered. The high bit becomes the high bit, 0 or 1. As @Gary says, it only matters when the sending field is smaller than the receiving register. (And then only when the

Re: Unsigned 64-bit numbers

2022-04-28 Thread Gary Weinhold
When loading 8 bytes into an 64-bit register, you needn't worry about logical vs. arithmetic.  The sign only makes a difference if it's less than a doubleword being loaded.  An LG will load it.. On 2022-04-28 5:20 p.m., Schmitt, Michael wrote: How did you do it in COBOL? Gary Weinhold Senior

Re: Unsigned 64-bit numbers

2022-04-28 Thread Keith Moe
No need for logical loading of an 8 byte number. There is no sign propagation, so a simple LG will do. The, the arithmetic would use ALG, SLG, etc. Keith Moe BMC Software (retired in 33 days) On Thursday, April 28, 2022, 02:20:56 PM PDT, Schmitt, Michael wrote: How did you do it

Re: Unsigned 64-bit numbers

2022-04-28 Thread Paul Gilmartin
On Apr 28, 2022, at 15:20:16, Schmitt, Michael wrote: > ... >In case it makes a difference, this value is a timestamp (presumably > from the store-clock instruction) but it is stored in an 8-byte file field. > Now I need to take the file field and turn it into a date and a time

Re: Unsigned 64-bit numbers

2022-04-28 Thread Schmitt, Michael
How did you do it in COBOL? -Original Message- From: IBM Mainframe Assembler List On Behalf Of Dave Clark Sent: Tuesday, February 1, 2022 11:39 AM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Unsigned 64-bit numbers I previously asked about 32-bit unsigned numbers and that