EasyManua.ls Logo

Panasonic PanaXSeries MN1030 Series - Page 186

Panasonic PanaXSeries MN1030 Series
340 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
_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

Table of Contents

Related product manuals