CROSS ASSEMBLER ASM62XX

SECTION

SECTION

To change the section

The SECTION pseudo-instruction sets the first address of the subsequent section in the location coun- ter. Sections are 16-step areas starting from the beginning of the program memory.

(BNK) (PCP)

(PCS)

 

 

 

 

 

 

 

 

0

1

00H

 

 

 

 

 

 

 

 

 

 

Section

1

 

 

 

16 steps

0

1

10H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Section

2

 

 

 

 

0

1

20H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

:

:

:

:

 

:

 

 

0

1

F0H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Section

16

 

 

 

 

0

2

00H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Section

17

 

 

 

 

0

2

20H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

:

:

:

:

 

:

 

 

0

3

F0H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Section

48

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A SECTION pseudo-instruction written in the last section of the page not only clears the step counter but also updates the page counter, so a new page need not be specified.

A label can be written before the SECTION pseudo-instruction, but it cannot be referenced because it is not cataloged in the label table. In this case, write the label in the statement following the SECTION pseudo-instruction.

Example:

Location counter

 

 

(BNK) (PCP)

(PCS)

 

 

:

:

:

:

:

0

1

09H

JPBA

 

0

1

0AH

LD

X,0

0

1

0BH

LD

Y,0

0

1

0CH

LD

MX,4

 

 

 

SECTION

 

0

1

10H

TABLE LD

A,1

0

1

11H

ADD

A,1

:

:

:

:

:

0

1

FAH

RET

 

 

 

 

SECTION

 

0

2

00H

LOOP

SCF

0

2

01H

ADD

A,MY

:

:

:

:

:

III-14

EPSON

S1C62 FAMILY

 

 

DEVELOPMENT TOOL REFERENCE MANUAL