beautypg.com

Epson S5U1C62000A User Manual

Page 87

background image

S5U1C62000A MANUAL

EPSON

75

(S1C60/62 FAMILY ASSEMBLER PACKAGE)

CHAPTER 5: ASSEMBLER

.bank pseudo-instruction

Instruction format

.bank

:

Absolute bank number specification
• Only decimal, binary and hexadecimal numbers can be described.
• The bank number that can be specified is 0 or 1.
• One or more spaces or tabs are necessary between the instruction and the bank number.

Sample description:

.code

.bank

1

Function

Specifies an absolute bank address of a CODE section in an assembly source file. The section with the
.bank

pseudo-instruction will be located at the top of the specified bank.

Precautions

.bank is applicable to a CODE section only.

• When the .bank pseudo-instruction appears in a section, a new absolute section starts at that point.

The section type is fixed at CODE section. The .bank 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.

:

.bank 1

... Starts new absolute CODE section from bank 1.

:

.bss

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

:

.code

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

:

• If the .bank pseudo-instruction is defined immediately after a section definer (.code or .bss), the

section definer does not start a new section. The .bank pseudo-instruction starts a new CODE section.

Example:

.code

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

.bank 1

... This starts an absolute CODE section.

:

• If the .bank 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.

:

.bank 1

... 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 ".bank" pseudo-instruction in the CODE section.

.code

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

:

previous ".bank" pseudo-instruction.