7 assembler pseudo-instructions – Epson S5U1C62000A User Manual

Page 75

Advertising
background image

S5U1C62000A MANUAL

EPSON

63

(S1C60/62 FAMILY ASSEMBLER PACKAGE)

CHAPTER 5: ASSEMBLER

5.7 Assembler Pseudo-Instructions

The assembler pseudo-instructions are not converted to execution codes, but they are designed to control
the assembler or to set data.
For discrimination from other instructions, all the assembler pseudo-instructions begin with a character
"#" or ".". The instructions that begin with "#" are preprocessed pseudo-instructions and they are ex-
panded into forms that can be assembled. The expanded results are delivered in the preprocessed file
(.ms). The original statements of the pseudo-instructions (#) are changed as comments by attaching a ";"
before delivering to the file. The instruction that begins with "." are used for section and data definitions.
They are not converted at the preprocessing stage.
All the pseudo-instruction characters are not case sensitive.
The following pseudo-instructions are available in the assembler:

Pseudo-instruction

Function

Old instruction

#include

Includes another source.

#define

Defines a constant string.

EQU

#macro–#endm

Defines a macro.

MACRO–ENDM

#ifdef–#else–#endif

Defines an assemble condition.

#ifndef–#else–#endif

Defines an assemble condition.

.align

Sets alignment of a section.

.org

Sets an absolute address.

ORG

.page

Sets a page number.

PAGE

.bank

Sets a bank number.

BANK

.code

Declares a CODE section (mapping to the built-in ROM).

SECTION

.bss

Declares a BSS section (mapping to the built-in RAM).

.codeword

Defines data in the CODE section.

DW

.comm

Secures a global area in the BSS section.

.lcomm

Secures a local area in the BSS section.

.global

Defines an external reference symbol.

.set

Defines an absolute address symbol.

SET

.list

Controls assembly list output.

.nolist

Controls assembly list output.

.stabs

Debugging information (source name).

.stabn

Debugging information (line number).

The assembler supports the old-type pseudo-instructions shown above.
They are converted into the new format in the preprocessing stage. The LOCAL pseudo-instruction is
removed in the preprocessing stage. The END pseudo-instruction functions the same as the older tool.

Advertising