entry

Defines an entry point into the current function. Use the extern qualifier to declare a global entry point and use the static qualifier to declare a local entry point. If you leave out the qualifier, extern is assumed (refer to the listing displayed below).

  entry [extern|static] name  
Parameters

extern

Specifier for a global entry point (the default).

static

Specifier for a local entry point.

name

Name for the new entry point.

Example

The following listing defines the new local entry point MyEntry for function MyFunc.

Listing: Entry Directive Example
static long MyEntry(void);
static asm long MyFunc(void)

{

    move.l  a,d0

    bra.s   L1

    entry   static MyEntry

    move.l  b,d0

L1: rts

}