ENTRYPOINT

VAX11

 

.ENTRYPOINT - Define the starting address of the program.

 

Every VAX11 program starts at address 0 or on label 'main' address.

.entrypoint allows the user to define other label or address for the starting of the program.

 

Format:

.entrypoint Label/Address

 

Example:

 

.text

 

.entrypoint start

 

.org 100

start: .word 0

      pushal hello_str

      calls $1, .puts

     

      pushl $0

      calls $1, .exit

 

.data

hello_str: .asciz "Hello, World"

 

Please note that if we define address as starting point, for example:

".entrypoint 0x100", the actual running of the program will start on 0x102, after the mask word.