Epson S5U1C62000A Manual page 86

Epson cmos 4-bit single chip microcomputer manual
Table of Contents

Advertisement

CHAPTER 5: ASSEMBLER
.page pseudo-instruction
Instruction format
.page
<Page number>
<Page number>:
Absolute page number specification
• Only decimal, binary and hexadecimal numbers can be described.
• The page numbers that can be specified are from 0 to 15 (0xf).
• One or more spaces or tabs are necessary between the instruction and the page number.
Sample description:
.code
.page
0x1
Function
Specifies an absolute page address of a CODE section in an assembly source file. The section with the
.page pseudo-instruction will be located at the top of the specified page.
Precautions
• When the .page pseudo-instruction appears in a section, a new absolute section starts at that point.
The section type does not change. The .page pseudo-instruction keeps its effect only in that section
until the next section definer (.code or .bss) or the next location definer (.org, .align, .page, or .bank)
appears.
Example:
:
.code
:
.page 5
:
.bss
:
.code
:
• If the .page pseudo-instruction is defined immediately after a section definer (.code or .bss), the
section definer does not start a new section. But .page starts a new section with the attribute of the
section definer.
Example:
.code
.page 5
:
• If the .page pseudo-instruction is defined immediately before a section definer (.code or .bss), it does
not start a new section and makes no effect to the following sections.
Example:
.code
:
.page 5
.bss
:
.code
:
74
... The latest relocatable section definition.
... Starts new absolute CODE section from page 5.
... This section is relocatable not affected by the ".page" pseudo-instruction.
... This section is also relocatable not affected by the ".page" pseudo-instruction.
... This does not start a new CODE section.
... This starts an absolute CODE section.
... The latest relocatable section definition.
... This does not start a new absolute section and makes no effect.
... The another kind (BSS) of section which is not affected by the
previous ".page" pseudo-instruction in the CODE section.
... This will be an relocatable CODE section not affected by the
previous ".page" pseudo-instruction.
EPSON
S5U1C62000A MANUAL
(S1C60/62 FAMILY ASSEMBLER PACKAGE)

Advertisement

Table of Contents
loading

Table of Contents