On 10/23/2006 11:48 AM, Edward Jaffe wrote:
Knutson, Sam wrote:
If you want to round out the modules to allow you to page protect them
perhaps something like this instead of the special link edit procedure.

*
         LTORG ,
*
* round this module to a page boundary for page protect DC ((*+4095-DRIVER)/4096*4096-(*-DRIVER))X'00'
DRIVERL EQU   *-DRIVER

That will round out each CSECT to a 4K multiple. Suppose you want to link two or more CSECTs together and have the resultant *module* rounded to a 4K boundary?


I haven't tried this, so there's probably a flaw I've missed (or perhaps I misunderstand what you want) but how about something like:

DRIVER1   CSECT
          ...
          LTORG ,
          DS  0D
DRIVER1L  EQU  *-DRIVER1
*
DRIVER2   CSECT
          ...
          LTORG ,
          DS  0D
DRIVER2L  EQU *-DRIVER2
*
TOTAL     EQU DRIVER1L+DRIVER2L
PAD       EQU (((TOTAL+4095)/4096*4096-TOTAL)
*
          DC (PAD)X'00'


        Walt

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to