beautypg.com

Epson S5U1C62000A User Manual

Page 64

background image

52

EPSON

S5U1C62000A MANUAL

(S1C60/62 FAMILY ASSEMBLER PACKAGE)

CHAPTER 5: ASSEMBLER

Restrictions

• Only one statement can be described in one line. A description containing more than two instructions

in one line will result in an error. However, a comment or a label may be described in the same line
with an instruction.

Example:

;OK
BOOT:

ld

a,0x4

;Error
BOOT:

ld

a,0x4

ld

b,0x0

• One statement cannot be described in more than one line. A statement that cannot complete in one

line will result in an error.

Example:

.codeword

0x0,0x1,0x2,0x3

... OK

.codeword

0xa,0xb,0xc,0xd

... OK

.codeword

0x0,0x1,0x2,0x3
0xa,0xb,0xc,0xd

... Error

• The maximum describable number of characters in one line is 259 (ASCII characters). If this number is

exceeded, an error will result.

• The usable characters are limited to ASCII characters (alphanumeric symbols), except for use in

comments. Also, the usable symbols have certain limitations (details below).

• The reserved words such as mnemonics and pseudo-instructions are all not case sensitive, while items

definable by the user such as labels and symbols are all case sensitive. Therefore, mnemonics and
pseudo-instructions can be written in uppercase (A–Z) characters, lowercase (a–z) characters, or both.
For example, "ld", "LD", and "Ld" are all accepted as "ld" instructions. For purposes of discrimination
from symbols, this manual uses lowercase characters for the reserved words.