Add 1G twice?  (You did not insist on an elegant solution.....)

MKB

-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]]
On Behalf Of Mark Boonie
Sent: 25 June 2015 23:01
To: [email protected]
Subject: Rounding to a 2G-byte boundary

I have macro that currently looks like this:

         MACRO ,
         RNDUP &REG,&BOUND
         AGHI  &REG,&BOUND-1
         RNDDOWN &REG,&BOUND
         MEND  ,

I was trying to update it to use the newer ALGFI instruction like this:

         MACRO ,
         RNDUP &REG,&BOUND
         ALGFI &REG,&BOUND-1
         RNDDOWN &REG,&BOUND
         MEND  ,

However, I can't specify the boundary as a symbol equated to 2G (e.g., 
SEGTBLRANGE EQU X'80000000') without getting an assembler error due to an 
overflow in an intermediate value.  Does anyone have any alternative ways 
to do this?  I really need the ability to handle 2G.  Thanks.

- mb
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1434 / Virus Database: 4365/9594 - Release Date: 06/25/15

Reply via email to