Re: Rounding to a 2G-byte boundary

2015-06-26 Thread Robert Ngan
Very messy but... try: RANGEEQUX'8000' RANGEA SETA RANGE RANGEC SETC (SIGNED RANGEA) RNDUP R6,RANGEC Robert Ngan CSC Financial Services Group IBM Mainframe Assembler List ASSEMBLER-LIST@LISTSERV.UGA.EDU wrote on 2015/06/25 23:35:19: From: Mark Boonie

Re: Rounding to a 2G-byte boundary

2015-06-26 Thread Steve Smith
Out of curiosity, what is this 2gb boundary needed for (at assembly time)? It would be a lot easier to calculate at run-time. sas

Re: Fw: Rounding to a 2G-byte boundary

2015-06-26 Thread Steve Smith
Well, X_4G should be Xl8' '. That second constant should be labeled X_32G. sas On Sat, Jun 27, 2015 at 12:47 AM, Steve Smith sasd...@gmail.com wrote: OK. Your problem is with the the assembly-time arithmetic, which it seems is always 32-bit signed, even if you are dealing in

Re: Rounding to a 2G-byte boundary

2015-06-26 Thread Paul Gilmartin
On 2015-06-26, at 21:06, Steve Smith wrote: Out of curiosity, what is this 2gb boundary needed for (at assembly time)? It would be a lot easier to calculate at run-time. It's harder at assembly time only because of an archaic assembler, circumvented by deferring the calculation to run