beautypg.com

Epson S5U1C62000A User Manual

Page 86

background image

74

EPSON

S5U1C62000A MANUAL

(S1C60/62 FAMILY ASSEMBLER PACKAGE)

CHAPTER 5: ASSEMBLER

.page pseudo-instruction

Instruction format

.page

:

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

... The latest relocatable section definition.

:

.page 5

... Starts new absolute CODE section from page 5.

:

.bss

... This section is relocatable not affected by the ".page" pseudo-instruction.

:

.code

... This section is also relocatable not affected by the ".page" pseudo-instruction.

:

• 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

... This does not start a new CODE section.

.page 5

... This starts an absolute CODE section.

:

• 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

... The latest relocatable section definition.

:

.page 5

... This does not start a new absolute section and makes no effect.

.bss

... The another kind (BSS) of section which is not affected by the

:

previous ".page" pseudo-instruction in the CODE section.

.code

... This will be an relocatable CODE section not affected by the

:

previous ".page" pseudo-instruction.