Short Direct Addressing - NEC 78K/0 Series User Manual

Nec computer hardware user's manual
Hide thumbs Also See for 78K/0 Series:
Table of Contents

Advertisement

3.2.4 Short direct addressing

[Function]
The memory to be manipulated in the fixed space is directly addressed with 8-bit data in an instruction word.
This addressing is applied to the 256-byte fixed space FE20H to FF1FH. An internal high-speed RAM and
special function registers (SFRs) are mapped at FE20H to FEFFH and FF00H to FF1FH, respectively.
The SFR area (FF00H to FF1FH) where short direct addressing is applied is a part of the entire SFR area.
Ports that are frequently accessed in a program, a compare register of the timer/event counter and a capture
register of the timer/event counter are mapped in the area FF00H through FF1FH, and these SFRs can be
manipulated with a small number of bytes and clocks.
When 8-bit immediate data is at 20H to FFH, bit 8 of an effective address is set to 0. When it is at 00H to
1FH, bit 8 is set to 1. See [Illustration] below.
[Operand format]
Identifier
saddr
Label or FE20H to FF1FH immediate data
saddrp
Label or FE20H to FF1FH immediate data (even address only)
[Description example]
MOV FE30H, #50H; When setting saddr to FE30H and the immediate data to 50H
Instruction code
[Illustration]
7
OP code
saddr-offset
15
Effective
1
1
1
1
address
When 8-bit immediate data is 20H to FFH,
When 8-bit immediate data is 00H to 1FH,
CHAPTER 3 ADDRESSING
Description
0
0
0
1
0
0
1
1
0
1
0
1
0
8 7
1
1
1
= 0.
= 1.
User's Manual U12326EJ4V0UM
0
0
0
1
OP code
0
0
0
0
30H (saddr-offset)
0
0
0
0
50H (immediate data)
Short direct memory
0
27

Advertisement

Table of Contents
loading

Table of Contents