CHAPTER 4: ASSEMBLER

4.7.10 Data Defining Pseudo-Instructions (.codeword, .word).codeword pseudo-instruction

Instruction format

.codeword <Data>[,<Data> ...,<Data>]

<Data>:

13-bit data

Only decimal, binary and hexadecimal numbers can be described.

The data that can be specified are from 0 to 8,191 (0x1fff).

One or more spaces or tabs are necessary between the instruction and the first data.

A comma (,) is necessary between one data and another.

Sample description:

.code

.codeword 0xa,0xa40,0xff3

Function

Defines 13-bit data to be written to the code ROM.

Precaution

The .codeword pseudo-instruction can be used only in CODE sections.

.word pseudo-instruction

Instruction format

.word <Data>[,<Data> ...,<Data>]

<Data>:

4-bit data

Only decimal, binary and hexadecimal numbers can be described.

The data that can be specified are from 0 to 15 (0xf).

One or more spaces or tabs are necessary between the instruction and the first data.

A comma (,) is necessary between one data and another.

Sample description:

.data

.word 0xa,0xb,0xc,0xd

Function

Defines 4-bit data to be written to the data ROM.

Precaution

The .word pseudo-instruction can be used only in DATA sections.

S5U1C63000A MANUAL

EPSON

79

(S1C63 FAMILY ASSEMBLER PACKAGE)