Chapter 17 Appendix

17.3 List of Assembler Directives

This section provides a list of assembler directives.

Directives for program control

 

 

Syntax

 

Function & Notes

 

 

 

 

symbol

instruction

operand

 

 

 

 

 

 

 

 

align

expression

Adjust the location counter to be a multiple of the

 

 

 

value indicated by expression. The expression

 

 

 

must be a power of 2 in the range 1 to 215

 

end

 

Indicates the end of the program.

 

 

 

 

 

org

expression

Change the program address to the value special by

 

 

 

expression.

 

 

 

expression=label_name+constant

 

 

 

 

name

section

[definition1

Sets the start of a section.

 

 

[,definition2[,expression]]]

definition 1: section attribute

 

 

 

 

(CODE DATA)

 

 

 

definition 2: link type

 

 

 

 

(PUBLIC PRIVATE COMMON)

 

 

 

expression: location counter boundary

 

 

 

value

(power of 2).

 

 

 

 

 

opt

on off

Enables/disables optimization

 

 

 

 

 

Directives for symbols

 

 

Syntax

Function & Notes

 

 

 

symbol

instruction

operand

 

 

 

 

 

name

equ

value

Defines a name as the value of the expression

 

 

 

coded in the operand.

 

 

 

 

name

assign

value

Defines a name as the value of the expression

 

 

 

coded in the operand.

 

 

 

 

 

global

name(,name)...

Declares global declarations and global

 

 

 

references.

 

 

 

 

318 List of Assembler Directives

Page 330
Image 330
Panasonic MN1030 user manual List of Assembler Directives, Directives for program control, Directives for symbols