English
Language : 

AS6133 Datasheet, PDF (47/115 Pages) NEC – For PC-9800 (MS-DOS-TM Based), For IBM PC/ATTM (PC DOS-TM Based)
PART I CHAPTER 3 PSEUDO INSTRUCTIONS AND CONTROL INSTRUCTIONS
EQU
EQUATE
EQU
Symbol
name
Mnemonic
EQU
Operand
<expression>
Comment
[;comment]
[Function]
Assigns the value of the expression specified in the operand to the name coded in the symbol field.
[Usage]
This instruction is used to define a data memory address.
[Explanation]
(1) Before a symbol can be coded in the operand field, the symbol must first be defined.
(2) Delimit the symbol field, mnemonic field, and operand field with a blank.
(3) If the symbol or mnemonic field contains an error, the specified name is not registered. Accordingly, a
statement referencing that name becomes invalid. If the operand contains an error, 0 is assigned to the name.
(4) For a name defined using the EQU pseudo instruction, redefinition within the module in which the name is
defined is not possible. If an attempt is made to redefine the name, an S error (duplicate symbol definition)
occurs.
(5) When a name is defined using the EQU pseudo instruction, the name can be referenced by an instruction prior
to the definition only when the name is specified in the operand of the instruction.
(6) The defined expression value is not converted to µPD6133 code; the value is assigned as is.
[Example]
P3_INIT
EQU
P3_MOD
EQU
;
OUT
12H
P3_INIT
P3,#P3_MOD
User’s Manual U10115EJ3V0UM
47