On 12/21/2013 4:51 AM, John Gilmore wrote:
EJ's macro can of course be written in the form

           MACRO ,
  &LABEL  DIAG  &R1,&R2,&I1
  &LABEL  LA    &R1,&I1.(&R2.,0)    Diagnose
           ORG   &LABEL
           DC    X'83'
           ORG  ,
           MEXIT  ,
           MEND  ,

and this form, which delegates the location-counter arithmetic to the
assembler, seems to me to be at once clearer and less error-prone.

This will not work if used in code that is already ORGed back. In that
case, the "blank" ORG will not advance three bytes. It will advance to
the highest-defined location in the current section/LOCTR.

--
Edward E Jaffe
Phoenix Software International, Inc
831 Parkview Drive North
El Segundo, CA 90245
http://www.phoenixsoftware.com/

Reply via email to