Epson S1C62 Family User Manual

Page 43

Advertising
background image

CROSS ASSEMBLER ASM62XX

S1C62 FAMILY

EPSON

III-13

DEVELOPMENT TOOL REFERENCE MANUAL

BANK

BANK_<Expression>

To set the bank (BNK)

The BANK pseudo-instruction sets the value of <expression> in the bank (BNK) field, and sets the page
counter (PCP) and step counter (PCS) to 00H.
The BANK pseudo-instruction can be written at multiple locations in the program. However, it cannot
be used to specify the current bank (excluding the specification in page 00, step 00) or a previous bank.
If it is used to specify the current bank or a previous bank, an exclamation mark "!", indicating a
warning, is displayed, and all subsequent statements until the next correct statement are ignored.
A label can be written before the BANK statement, but it cannot be referenced because it is not
cataloged in the label table. In this case, write the label in the statement after the BANK pseudo-
instruction.

PAGE

PAGE_<Expression>

To set the page counter (PCP)

The PAGE pseudo-instruction sets the value of <expression> in the page counter (PCP) and sets the
step counter (PCS) to 00H.
The PAGE pseudo-instruction can be written at multiple locations in the program. However, it cannot
be used to specify the current page (excluding the specification in step 00) or a previous page. If it is
used to specify the current page or a previous page, an exclamation mark "!", indicating a warning, is
displayed, and all subsequent statements until the next correct statement are ignored.
A label can be written before the PAGE statement, but it cannot be referenced because it is not
cataloged in the label table. In this case, write the label in the statement after the PAGE pseudo-
instruction.

Example:

Location counter

(BNK) (PCP) (PCS)

:

:

:

:

:

0

0

1AH

LD

X,0

0

0

1BH

LD

Y,0

:

:

:

:

:

0

0

F0H

JP

xxx

PAGE 2

0

2

00H

SUB1:

LD

A,MX

0

2

01H

LD

B,MY

:

:

:

:

:

PAGE 1

!

SUB2:

LD

A,MX

!

LD

B,MY

:

:

PAGE 3

0

3

00H

SUB3:

LD

A,0

0

3

01H

LD

B,1

:

:

:

:

:

An R-error occurs if a value is specified that exceeds the last page.

Note

The last page depends on the model. (Refer to the "S5U1C62xxxD Manual".)

Effective

Ineffective because a previous page

was specified

Advertising