Chapter 9 Writing Machine Language Instructions and Directive Statements

9.4.3end

Syntax

label

operation operand

[name] end

Default settings

If the end directive is omitted, the assembler file will assume that the end of the file is the end of the program.

Functional description

This directive is coded once at the end of a program. All text coded after the end directive will be ignored by the assembler (but it will be output to the source list).

When a name is coded in the label field, the current location counter value will be assigned to it.

Operand coding rules

The end directive takes no operands. If operands are coded, they will cause an assembler syntax error.

Usage example

Below is an example use of the end directive.

_CODE

section

CODE, PUBLIC, 2

main

jsr

data_move

 

 

mov

0, D0

 

.

 

 

.

 

 

end

 

158 Writing Directive Statements

Page 170
Image 170
Panasonic MN1030 3 end, Label, Name end, Below is an example use of the end directive, Main Jsr Datamove Mov End