The "normal" entry point of a program is the first location of the program.
An "alternate" entry point for a program is specified on the END card
for the assembly.
For example --
IEFBR14 CSECT
SR 15,15
BR 14
END
has an implied entry point at the first location of the program.
IEFBR14 CSECT
SR 15,15
BR 14
END IEFBR14
has an implied entry point at IEFBR14 (OK, it's the first location of
the program).
On the other hand --
IEFBR14 CSECT
DC C'Sample representation of IEFBR14, assembled on "
DC C'&SYSDATE at &SYSTIME',0D'0'
ENTRY EP
EP SR 15,15
BR 14
END EP
The ENTRY statement is not required, but unless it is there, the Binder
or Linkage Editor cannot assign an entry point if the object source is
the load module rather than the object deck produced by the
assembler.
Quote:
>how do i start a program at a particular address? (the first
>instruction). (i'm using assist.) help.
-- Steve Myers
The E-mail addresses in this message are private property. Any use of them
to send unsolicited E-mail messages of a commerical nature will be
considered trespassing, and the originator of the message will be sued in
small claims court in Camden County, New Jersey, for the maximum penalty
allowed by law.