Assembler Pseudo-Instructions - Epson S5U1C62000A Manual

Epson cmos 4-bit single chip microcomputer manual
Table of Contents

Advertisement

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
#include
#define
#macro–#endm
#ifdef–#else–#endif
#ifndef–#else–#endif
.align
.org
.page
.bank
.code
.bss
.codeword
.comm
.lcomm
.global
.set
.list
.nolist
.stabs
.stabn
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.
S5U1C62000A MANUAL
(S1C60/62 FAMILY ASSEMBLER PACKAGE)
Function
Includes another source.
Defines a constant string.
Defines a macro.
Defines an assemble condition.
Defines an assemble condition.
Sets alignment of a section.
Sets an absolute address.
Sets a page number.
Sets a bank number.
Declares a CODE section (mapping to the built-in ROM). SECTION
Declares a BSS section (mapping to the built-in RAM).
Defines data in the CODE section.
Secures a global area in the BSS section.
Secures a local area in the BSS section.
Defines an external reference symbol.
Defines an absolute address symbol.
Controls assembly list output.
Controls assembly list output.
Debugging information (source name).
Debugging information (line number).
EPSON
CHAPTER 5: ASSEMBLER
Old instruction
EQU
MACRO–ENDM
ORG
PAGE
BANK
DW
SET
63

Advertisement

Table of Contents
loading

Table of Contents