Panasonic MN1030 Manuale Utente
Chapter 9 Writing Machine Language Instructions and Directive Statements
174 Writing Directive Statements
Usage example
Below is an example use of the global directive.
NOTE:
If a section name was referred as an external label, declaration with the section
directive, not with the global directive, is necessary.
Example:
sec section CODE,PUBLIC,1
directive, not with the global directive, is necessary.
Example:
sec section CODE,PUBLIC,1
_TEXT section CODE,PUBLIC,1
mov sec, A0
global
SUB1
;external declaration
global
READ,
WRITE
;external reference
main
jsr
READ
.
.
jsr
WRITE
.
.
SUB1
mov
0x11, D0
.
.
rts
end