Short Direct Addressing; Www.datasheet4U.com 3.4.2 Short Direct Addressing - NEC 78K0S/KA1+ Preliminary User's Manual

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KA1+:
Table of Contents

Advertisement

www.DataSheet4U.com

3.4.2 Short direct addressing

[Function]
The memory to be manipulated in the fixed space is directly addressed with the 8-bit data in an instruction word.
The fixed space where this addressing is applied is the 256-byte space FE20H to FF1FH. An internal high-
speed RAM is mapped at FE20H to FEFFH and the special function registers (SFR) are mapped at FF00H to
FF1FH.
The SFR area where short direct addressing is applied (FF00H to FF1FH) is a part of the total SFR area. In this
area, ports which are frequently accessed in a program and a compare register of the timer counter are mapped,
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 cleared to 0. When it is at 00H to
1FH, bit 8 is set to 1. See [Illustration] below.
www.DataSheet4U.com
[Operand format]
Identifier
saddrp
[Description example]
MOV FE90H, #50H; When setting saddr to FE90H and the immediate data to 50H
[Illustration]
Effective
address
40
CHAPTER 3 CPU ARCHITECTURE
saddr
Label or FE20H to FF1FH immediate data
Label or FE20H to FF1FH immediate data (even address only)
Instruction code
1
1
1
0
0
1
7
0
OP code
saddr-offset
15
8
α
1
1
1
1
1
1
1
When 8-bit immediate data is 20H to FFH,
When 8-bit immediate data is 00H to 1FH,
Preliminary User's Manual U16898EJ1V0UD
Description
1
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
α
= 0.
α
= 1.
OP code
90H (saddr-offset)
50H (immediate data)
Short direct memory

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpd78f9221Mpd78f9222

Table of Contents