I addressed this problem in a post several years ago:
>Because, as he explained, the module may be smaller than the required
number of bytes for the unused part of the table, >which will not,
therefore, be addressable.
>There is a simple solution:
>         ORG   PRGSTART+C'0'
>         ORG   ,
>PRTHEX   DC    C'0123456789ABCDEF'
>
>This will squander a few bytes when the program is smaller than 256 bytes,
but will have no effect if there are more >than 240 bytes of code before the
start of PRTHEX.
>D de J
> -----Original Message-----
> From: IBM Mainframe Assembler List [mailto:ASSEMBLER-
> [email protected]] On Behalf Of Paul Gilmartin
> Sent: Thursday, August 09, 2012 9:02 AM
> To: [email protected]
> Subject: Re: Printing a return code
>
> On Aug 8, 2012, at 12:16, Kirk Talman wrote:
>
> > An old technique is to use a truncated table from the days when the
> > amount of storage used mattered.  This is from a macro expansion.
> > Often placed at the end of the program just after the LTORG.
> >
> > TRHEX    EQU   *-X'F0'
> >         DC    C'0123456789ABCDEF'
> >
> But beware if you code:
>
>      TR       0(8,RX),TRHEX
>
> which might have addressability problems in a short CSECT.
>
> -- gil

Reply via email to